TypeScript Solution
// Runtime: 88 ms, faster than 44.71% of JavaScript online submissions for Fizz Buzz.\n// Memory Usage: 38.9 MB, less than 51.65% of JavaScript online submissio
// Runtime: 88 ms, faster than 44.71% of JavaScript online submissions for Fizz Buzz.\n// Memory Usage: 38.9 MB, less than 51.65% of JavaScript online submissions for Fizz Buzz.\n\n```\nfunction fizzBuzz(n: number): string[] {\n  return [...Array(n).keys()].map((i) => {\n    const num = i + 1;\n    if (num % 3 === 0 && num % 5 === 0) return \'FizzBuzz\';\n    if (num % 3 === 0) return \'Fizz\';\n    if (num % 5 === 0) return \'Buzz\';\n    return num.toString();\n  });\n}\n```\nMore leetcode TypeScript solutions at https://github.com/eddyhdzg/leetcode-typescript-solutions\n
['TypeScript']