Clean JavaScript Solution
\n// time O(n) space O(n)\nvar fizzBuzz = function(n) {\n    const result = []\n    \n    for(let i=1; i<=n; i++) {\n        if(i % 3 === 0 && i % 5 === 0) {\n 
```\n// time O(n) space O(n)\nvar fizzBuzz = function(n) {\n    const result = []\n    \n    for(let i=1; i<=n; i++) {\n        if(i % 3 === 0 && i % 5 === 0) {\n            result.push(\'FizzBuzz\')\n        } else if(i % 3 === 0) {\n            result.push(\'Fizz\')\n        } else if(i % 5 === 0) {\n            result.push(\'Buzz\')\n        } else {\n            result.push(i.toString())\n        }\n    }\n    \n    return result\n};\n```
['JavaScript']