Register now or log in to join your professional community.
Assuming the language is Javascript, knowing setTimeout and console.log there are2 obvious syntax errors:
1. Line #1: Missing the value after i <
2. Line #4: Comma after curly bracket close
To run the script let's say i < then:
<script>
for(var i =0; i <; i++) {
setTimeout(function() {
console.log(i);
});
}
</script>
Thanks and Good Luck!