11. Review. Cannot figure out my mistake


#1

This is my code:

for (var i = 0; i <= 5, i++)
{
console.log("I like the number " + i);
}

var myWhileLoop = true;

while(myWhileLoop) {
console.log("Hi there");
myWhileLoop = false;
}

var myDoLoop = 0;
do {
console.log("Please work");

} while(myDoLoop);

and I get this error message "There was a problem with your syntax."

Any idea what I might be doing wrong?


#2

A simple syntax error... Change the comma after 5 to a semi-colon.


#4

I've been going crazy staring at it. Thank you so much!