When to 'while' and when to 'for' -- Help!


#1

It looks so simple but I can´t find the mistake, can anybody help me please? :cry:

var i = 0;
var j = 0;

While (i < 4)
{
for (j = 1; j < 3; j ++)
{
console.log (j);

}
i++;

}

::Oops, try again. Your syntax doesn't look quite right. Check the Hint if you need help!::


#3

one more thing you while loop has the first letter as capital change it into lowercase.


#4

oh gosh! Thanks a lot!! :smile: