Solo Flight - Very Frustrating!


#1

I tried everything I know but the codes seem to loop infinitely.

var myCount = true;
var soloLoop = function(){
    while (myCount);
  console.log("Looped once!");
  myCount = false;
};

soloLoop();

var soloLoop = function(){
   var myCount = true;
    while (myCount);
  console.log("Looped once!");
  myCount = false;
};

soloLoop();

This site is so difficult for newbie like me. So frustrating.


#2

Hi you forgot to open and close your while statement

while (conditions){

}

#3

while (myCount);

do semicolon after while loops. Maybe see those two links: