{"ScriptPreparationCode":null,"TestCases":[{"Name":"push","Code":"const fizzBuzz = function(n) {\r\n const result = [];\r\n for (let i = 1; i \u003C= n; \u002B\u002Bi) {\r\n if (i % 15 === 0) {\r\n result.push(\u0027FizzBuzz\u0027);\r\n } else if (i % 3 === 0) {\r\n result.push(\u0027Fizz\u0027);\r\n } else if (i % 5 === 0) {\r\n result.push(\u0027Buzz\u0027);\r\n } else {\r\n result.push(i.toString());\r\n }\r\n }\r\n return result;\r\n};\r\nfizzBuzz(100);","IsDeferred":false},{"Name":"[i-1]","Code":"const fizzBuzz = function(n) {\r\n const result = [];\r\n for (let i = 1; i \u003C= n; \u002B\u002Bi) {\r\n if (i % 15 === 0) {\r\n result[i-1] = \u0027FizzBuzz\u0027;\r\n } else if (i % 3 === 0) {\r\n result[i-1] = \u0027Fizz\u0027;\r\n } else if (i % 5 === 0) {\r\n result[i-1] = \u0027Buzz\u0027;\r\n } else {\r\n result[i-1] = i.toString();\r\n }\r\n }\r\n return result;\r\n};\r\nfizzBuzz(100);\r\n","IsDeferred":false},{"Name":"new Array","Code":"const fizzBuzz = function(n) {\r\n const result = new Array(n);\r\n for (let i = 1; i \u003C= n; \u002B\u002Bi) {\r\n if (i % 15 === 0) {\r\n result[i-1] = \u0027FizzBuzz\u0027;\r\n } else if (i % 3 === 0) {\r\n result[i-1] = \u0027Fizz\u0027;\r\n } else if (i % 5 === 0) {\r\n result[i-1] = \u0027Buzz\u0027;\r\n } else {\r\n result[i-1] = i.toString();\r\n }\r\n }\r\n return result;\r\n};\r\nfizzBuzz(100);","IsDeferred":false},{"Name":"result.length","Code":"const fizzBuzz = function(n) {\r\n const result = [];\r\n result.length = n;\r\n for (let i = 1; i \u003C= n; \u002B\u002Bi) {\r\n if (i % 15 === 0) {\r\n result[i-1] = \u0027FizzBuzz\u0027;\r\n } else if (i % 3 === 0) {\r\n result[i-1] = \u0027Fizz\u0027;\r\n } else if (i % 5 === 0) {\r\n result[i-1] = \u0027Buzz\u0027;\r\n } else {\r\n result[i-1] = i.toString();\r\n }\r\n }\r\n return result;\r\n};\r\nfizzBuzz(100);","IsDeferred":false}]}