11. review


#1


Not sure what is wrong with my code. every time I run it the tab crashes. no error message. can anyone help me out?


for (var i = 1; i < 10; i++ ){
    console.log(i);
    }

var x = true;
while (x = true){
    console.log("x is true!");
    x = false;
    
    }
var y = false;
do{
    y++;
    console.log("Y is false!");
    } while (false);


#2

while (x = true) //  for checking you should use ==

#3

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