It's because you declare it
inside the loop. Declare it outside the loop to concatenate each iteration:
let output = "";
for (let num = 1; num <= 100; num++){
if(num % 3 == 0) output += "Fizz";
if(num % 5 == 0) output += "Buzz";
console.log(output || num);
}