Got stuck with 11 Review (loops)


#1


https://www.codecademy.com/courses/javascript-beginner-en-ASGIv/2/4?curriculum_id=506324b3a7dffd00020bf661#


SyntaxError: Invalid or unexpected token


for(i=1; i<3; i++) {
    console.log("Here should be FOR loops");
};

var condition = true;
while(condition){
    console.log("While Loop");
    condition = false;
    };
    
var condition = false;
do {
    console.log("do/while loop");
    };
while(condition);


#2

Remove the second last semi-colon. Everything else looks good.


#3

Thanks! It works now


#4

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