Help!


#1

var myLoop = true
while (myLoop = "Joe"){
myLoop(){
for(i=1; i<=11 ;i++);
}
};
console.log(myLoop);

Where am I wrong??


#2

First:

This doesn't do anything, and is a syntax because it does not make sense, so you should take it out.

This is a for LOOP. Loops always have brackets that signals where the loop starts and ends. Also, loops MUST not have semi colons in front of them, because semi colons stop the function, and signals that this is the end. But since it isn't you must take out the semi colon.

Also:

Since myLoop equals to true, not Joe, it will not be able to function. So, you can change that to true, and put a console.log saying Joe when it is true.


#3

Awesome, thanks you!