export function fizzBuzz(i: number): string { return (['Fizz'][i%3] || '') + (['Buzz'][i%5] || '') || i.toString() }
export function fizzBuzz(input: number): string {const output: string = `${input % 3 === 0 ? "Fizz" : ""}${input % 5 === 0 ? "Buzz" : ""}`;return output.length > 0 ? output : input.toString(10);- export function fizzBuzz(i: number): string {
- return (['Fizz'][i%3] || '') + (['Buzz'][i%5] || '') || i.toString()
- }