Console is not showing anything!


#1

getToDaChoppa = false;
var getToDaChoppa = function(){
// Write your do/while loop here!
do {
console.log ("If you like cake then" + getToDaChoppa + "!");

}while (getToDaChoppa)};

what is the wrog in this code?????pleae get me out of here


#2

getToDaChoppa = false;
var getToDaChoppa = function(){
// Write your do/while loop here!
do {
console.log ("If you like cake then" + getToDaChoppa + "!");

}while (getToDaChoppa)};

why you've put entire thing(do{....}while() loop) inside the function called getToDaChoppa ?

lets get back to instruction..

Read theory and then this instruction..

Click Save & Submit Code to see the loop in action. It runs once because do tells it to, but then never again because loopCondition is false!


#3

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