Review of Loops in JS


Syntax Error: Unexpected identifier

var condition = true;
var gater = function(){
for (i=0;i>101;i+=5); {
 do {
     console.log("Here we go!");
     condition = false;
while (condition);
get gater();


for (i=0;i>101;i+=5);

you shouldn't have a ; after for loop
also see the condition i>101

and here

get gater();

what are you doing here?you can simply call the function with function



Thanks so much!
Fixed it!


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.