Challenge 4: fizzBuzz ()
Write a function named fizzBuzz () that logs each number from 1 to 20. However, for each multiple of 3, log "Fizz" instead of the number. For each multiple of 5, log "Buzz" instead of the number. For numbers that are multiples of both 3 and 5, log "FizzBuzz" instead of the number.
Here is the input you should enter:
And here is an example of the output you should get after you write proper code for this challenge:
1 2 Fizz 4 Buzz Fizz 7 8 Fizz Buzz 11 Fizz 13 14 FizzBuzz 16 17 Fizz 19 Buzz
console.log(fizzBuzz(20))