10. To Learn, You gotta "Do" it


#1

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;
}
getToDaChoppa();

Replace this line with your code.

`


#2

the comparison should be done inside parentheses:

while ( x == false );

also, a single equal sign means assign.

and what is getToDaChopp? a undefined variable?


#4

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