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


var understand = true;

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


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


thank you @steim94 I just tried it and it works