11.Review


#1

var age = 5;
while (age < 10) {
console.log("Luna");
age++;
}

for ( var i =1 ; i<10 ; i++) {
console.log(i);
}
var name = false;
do {
console.log("Blah");
}while(name)

What is wrong ? Please help me :frowning:


#2

What error message are you getting from the lesson check? Is there a specific order in which the instructions must be followed (for loop before while loop)?


#3

Screen freeze every single time :confused:


#4

The variable name is a reserved word in global scope. It is a property of the window object and cannot be set outside of a function. Change to something else.

condition = false;
do { // ...

} while (condition);

#5

Thank you so much for help! :smiley:


#6

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