6. Solo Flight


#1

Can someone tell me what's wrong with my code?

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

soloLoop();


#2

What does it do differently from what you want?
What would you need to know to figure out what it's doing wrong? Perhaps that's something you can add a bit of code to find out?


#3

hi, you forgot one quote. Good luck!


#4

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