Not understanding whats wrong with my code?


#1


Hello all, i am stuck on the "solo flight" lesson and cant figure out what i did incorrectly. Any tips or anything would be amazing. and if one can help me understand what i did incorrectly would be even better. Thanks!


var clayton = true;
var soloLoop = function(){

    while(clayton) {
     console.log("Looped once!");
     clayton = false;
 }


soloLoop();
};


#2

here:

soloLoop();

this is your function call, the function call executes the function so it shoul be placed outside/after the function body/content


#3

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