FizzBuzz list
Write fizzBuzz(n) that returns an array of strings from 1 to n. Multiples of 3 become "Fizz", multiples of 5 become "Buzz", and multiples of both become "FizzBuzz".
Tests
0 of 3 passfizzBuzz(5)→["1","2","Fizz","4","Buzz"]fizzBuzz(15)[14]→"FizzBuzz"fizzBuzz(1)→["1"]
Tutor
The tutor guides you toward the answer instead of handing it over. It uses your own Claude usage.
Nothing printed. Use console.log to inspect values.