Task 1
Write a loop that counts from to and checks if the number is a multiple of or . If it’s a multiple of , it should log “Fizz” to the console. If it’s a multiple of , it should log “Buzz” to the console. If it’s a multiple of and , it should log “FizzBuzz” to the console, and if it’s a multiple of neither, it should just log the number to the console.
Get hands-on with 1400+ tech skills courses.