I\'m currently taking the code academy course on Javascript and I\'m stuck on the FizzBuzz task. I need to count from 1-20 and if the number is divisible by 3 print fizz, by
I thought switch too,but no need.
for (var n = 1; n <= 100; n++) { var output = ""; if (n % 3 == 0) output = "Fizz"; if (n % 5 == 0) output += "Buzz"; console.log(output || n); }