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

Where am I wrong??



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.


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.


Awesome, thanks you!