While loop , Solo Flight


#1

here is my code:

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

the result is Looped once! repeated on and on plus Firefox stops and I get a script message to stop or debug or continue.

Where is my error?
soloLoop();


#2

@lodum,
You may want to use

myCondition = false;

in you WHILE-loop


#3

oh my gosh! Another detail derails me! Thank you for your keen eye.