Examples:
fizzBuzz(5);
1
2
fizz
4
buzz
function fizzBuzz(n) { for (let i=1; i<=n; i++) { // Is the number a multiple of 3 and 5? if (i % 3 === 0 && i % 5 === 0) { // same as if (i % 15 === 0) console.log('fizzbuzz'); } else if(i % 3 === 0 ) { // Is the number a mutiple of 3 console.log('fizz'); } else if(i % 5 === 0 ) { // Is the number a mutiple of 5 console.log('buzz'); } else { console.log(i); } } }