6. Solo Flight - Constantly Breaking Browser


#1

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

};

soloLoop();

What am I doing wrong?


#2

HI you declare..

var myCondition = true

then you used it in the while condition

while(myCondition)

then when you set it to false you wrote

mycondition = false;

mycondition instead of myCondition