10. To learn it, you gotta do it | Help


#1

Write a do/while loop inside the function we've created for you, getToDaChoppa. The function should log a string of your choice to the console. do it now!

SyntaxError: Unexpected end of input

var x = false;

var getToDaChoppa = function(){
  // Write your do/while loop here!
  do {
      console.log("why isn't this workin");
} while (x)

getToDaChoppa();


#2

var x = false;

var getToDaChoppa = function(){
  // Write your do/while loop here!
  do {
      console.log("why isn't this workin");
} while (x)
// missing } to close function
getToDaChoppa();

see comment in code


#3

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