What is wrong with my syntax?



My code only shows up on the screen with this message: SyntaxError: Unexpected token }

here is my code :
var x = false

var getToDaChoppa = function(){
  // Write your do/while loop here!
      console.log("im really bored")
}; while(x)


HI you put the while(x) outside the function


ok it worked. thanks a ton!


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