11. Review: Ref Error


#1

What is wrong in this one? I get back:

1
ReferenceError: condition is not defined


#2

HI you should close your while loop and your for loop...

for (statement1, statement2, statement3) {
    #do something
}

and here an example of a while loop

var num = 0
while(num < 5 ) {
     console.log("I'm...");
     num++;
};

#Output
I'm...
I'm...
I'm...
I'm...
I'm...