Deviopath › JavaScript

FizzBuzz

Easy · Loops

Write a function fizzBuzz that returns an array of strings for the numbers from 1 to n.

For multiples of 3 use "Fizz", for multiples of 5 use "Buzz", and for multiples of both use "FizzBuzz". Every other number becomes a string, like "1".

Next: Reverse a String