FizzBuzz issue


#1

Hi Everyone,
Could anyone please tell me what's wrong with this code?

for (var i === 1; i < 21 ; i++)
{
if ((i % 3) === 0 && (i % 5) === 0)
{
console.log ("FizzBuzz");
}
else if ((i % 5) === 0)
{
console.log ("Buzz");
}
else if ((i % 3) === 0)
{
console.log ("Fizz");
}
else
{
console.log (i);
}
};

Any help is appreciated, thanks!


#2

Here

for (var i === 1; i < 21 ; i++)

Remove the === and put just =


#3

Thank you so much, it worked