Unexpected end of script : Solo flight


#1


Solo flight

Unexpected end of script

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

Continuing the discussion from Whats wrong with my code?:


#2

Hi you forgot to close the function soloLoop

var soloLoop = function() { //open the function soloLoop 
//Here goes the while 

} //close the function soloLoop

#3

:rage:OMG, thank you so much:raised_hands:


#4

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