So there are a couple things going wrong here. I will list them out.
num needs to start at 1.
var num = 1;
There is no need to use
i in your
for, you should replace it with
for (num; num<=totalTimes; num++)
You need to put
console.log(num); inside your else. As you want to
console.log all the remaining numbers that were not turned into fizz/fizzbuzz.
But the rest of the code is great.