Error message in do/while loop


#1


https://www.codecademy.com/courses/javascript-beginner-en-ASGIv/2/3?curriculum_id=506324b3a7dffd00020bf661


I'm on number 10 of the introduction to while loops in JS and I'm having trouble constructing this do/while loop. Can someone please show me what I'm doing wrong.


var bool = 1;
var getToDaChoppa = function(){
  // Write your do/while loop here!
  do {
      console.log ("This doesn't seem so bad");
  }
  while (bool === 1) {
  console.log ("done");
  bool++;
  }
};

getToDaChoppa(bool);


#2

Seems like your problem is similar to the one I described here:
https://discuss.codecademy.com/t/faq-and-some-explanations-about-loops/1201/5?u=haxor789


#3

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