11. Review - HELP!


#1


Can anyone help? I'm not too sure what I've done wrong, although I'm sure it's something really obvious that I'm missing! Please help!!!


for (var = 1; i < 11; i++) {
    console.log(counter);
}
var understand = true;
while(understand === true) {
    console.log("Pizza");
    understand = false;
}
var loopCondition = false;
do { 
    console.log("only print once!" + loopCondition + "!");
} while (loopCondition);


#2

var=1? You forgot the i. Then log (i) to the console instead of (counter).


#3

Thank you! Code works now! :slight_smile:


#4

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