Solo flight


#1


I'm not sure why my code won't work.
It ends up with an error message "Did you log 'Looped once!' to the console?".
I think I put the right sentence as below.

I need your help. Thanks


//Remember to make your condition true outside the loop!
var number = true;
var soloLoop = function(number){
  //Your code goes here!
  while(number){
  console.log("Looped once!");
  number = false;
  }

};

soloLoop();


#2

you are giving the number in the function

" var soloLoop = function(number) " <- This is wrong

remove "number" from the function


#3

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