9 the do/while loop
this stuff is confusing me
the do/while loop does something first and then check if its true. if its true, it continues, if its false it stops that means it only run once right?
var loopCondition = false;
console.log("I'm gonna stop looping 'cause my condition is " + loopCondition + "!");
} while (loopCondition);
so now, i dont get it.
a variable was created called false. it can be called anything right?
now the computer was asked to print I'm gonna stop looping cause blah blah blah while loop condition is false. but loop condition was already set to false and this condition is going to be true forever because loopcondition is false. there is no way to make it stop.
can someone kindly explain.