Logs 'Fizz' for multiples of three, 'Buzz', for multiples of 5, and 'Fizz Buzz' for multiples of 3 & 5
A short review;

You don't need the array, you could just use i
Part of the challenge is to realize that you only have to check for 3 and 5
i is a good short variable, I would go for num -&gt; n or even count
I only use fat arrow syntax =&gt; for inline functions
Function names ideally follow &lt;verb&gt;Thing syntax so fizzBuzz -&gt; logFizzBuzz

This is my counter proposal;


function logFizzBuzz(count){

  for (let i = 1; i &lt;= count; i++) {
    let out = '';
    if (i % 3 === 0){
      out += 'Fizz';
    }
    if (i % 5 === 0){
      out += 'Buzz';
    }
    console.log(out || i);
  }
}; 


logFizzBuzz(45);