6. solo flight


#1

Stuck here, what is wrong please

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

soloLoop();


#3

Remove the ')' after the sololoop in your while loop condition. Make it so that it is:
while (sololoop === true)


#4

Still doesn't working, thx

code

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

soloLoop();


#5

In Line 3, while ( sololoop === true ) >>>>>>> while ( myCondition === true )
In Line 5, sololoop=false; >>>>>> myCondition = false ;

maybe it will work.


#6

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