Where is a bug?


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/javascript-beginner-en-ASGIv/1/1?curriculum_id=506324b3a7dffd00020bf661#

<In what way does your code behave incorrectly? Include ALL error messages.>
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);

<do not remove the three backticks above>

#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?