I cant undestand what shoud i have to do


var understand = true;

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


=== it means: equal value and equal type. So, while(understand === 1) returns false.

You need use == operator or condition should be understand === true


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