Easy10 min
FizzBuzz
Return Fizz for a multiple of 3, Buzz for a multiple of 5, FizzBuzz for both, or the number as a string.
Your function
Implement solve(value, extra) in JavaScript. Return the answer; printing alone does not count as a result.
Examples
Input:
[3]Output:
"Fizz"Input:
[5]Output:
"Buzz"Constraints
Input contains at most 1,000 values or characters. Numbers are finite integers. Inputs follow the structure shown in the examples.