Can someone please help(i dont understand why my code isnt working)


#1

var understand = true;

while( understand === 1 ){
console.log("I'm learning while loops!");
understand = false;
}


#2

you declare a variable called understand, and give it a value of true.

Then you are going to check if understand === 1, well, it doesn't, since understand is true, not 1. Change your condition to check if understand is true


#3

thank you @steim94 I just tried it and it works