Why it doesnt work


#1


var getToDaChoppa = function()
{
  do
  {
    console.log("What is choppa");
    getToDaChoppa = false;
  }  
};

while(getToDaChoppa);


#2

Hello @chipsurfer71401,

would be better if you put the Error-message or what your problem is in your thread aswell - for the next time :stuck_out_tongue:

Well - guess I know what your problem is anyways. Try this:

 var getToDaChoppa = function(){
  // Write your do/while loop here!
  var condition = false;
  do {
      console.log(" Condition is " + condition + " ...");
  } while(condition);
};

getToDaChoppa();

Hope I could help you :slight_smile: