HALP. this is "solo flight" while statements


#1

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

soloLoop(true);


#3

Take a look at this example and study the differences:

var soloLoop = function () {

    // create a variable (not soloLoop)
    var myCondition = true;

    // set the loop to this condition
    while (myCondition) {
        console.log("Looped once!");
        myCondition = false;
    }
};

// call the function with no argument
soloLoop();

#4

nevermind, i just accidentally added another parenthesis