10. To Learn, You gotta "Do" it


I am stuck at Lesson 10.

My code is below and I'm getting the error: "Syntax Error = Unexpected Token"

var getToDaChoppa = function(){
  // Write your do/while loop here!
  do {
      console.log("Start the car!")
}   while(getToDaChopp) = false;

Replace this line with your code.



the comparison should be done inside parentheses:

while ( x == false );

also, a single equal sign means assign.

and what is getToDaChopp? a undefined variable?


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