Where is a bug?


#1



https://www.codecademy.com/courses/javascript-beginner-en-ASGIv/1/1?curriculum_id=506324b3a7dffd00020bf661#


Can anyone help me with this one ? It says wrong syntax but can't see what's wrong.


var count = 0;
var loop = function(num){
	for(num = 1, num < 10, num++) {
	    while (count < 3) {
		console.log("I'm looping");
	    }
	}
	loop == 10 {
	    loop = false;
	}
};

loop(1);


#3

Semicolons instead of commas here.
And this while loop is running infinitely:

    while (count < 3) {
	console.log("I'm looping");
    }

because count<3 is true and stays true as it is never changed.

This is just wrong, what did you expect this to do?