I cant undestand what shoud i have to do


#1

var understand = true;

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


#2

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

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


#3

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