While Loops Part 6


#1

I have tried everything I could to figure out a solution. Here is my code:

var myCondition = true;

var soloLoop = function(){

    while(myCondition) {
        console.log("Looped once!");
        loop = false;

};

soloLoop();

Afterwards, seem to get an error message "Unexpected end of input". Please help.


#2

You need another bracket at the end there. :smiley:


#3

Ghost of Steve Jobs, please kill me in my couch right now.