{"ScriptPreparationCode":"window.MAX_SIZE = 1000;","TestCases":[{"Name":"Push item to an array","Code":"const items = [];\r\nfor (let i = 0; i \u003C MAX_SIZE; i\u002B\u002B) {\r\n items.push(i); \r\n}","IsDeferred":false},{"Name":"Append an item by spread","Code":"let items = [];\r\nfor (let i = 0; i \u003C MAX_SIZE; i\u002B\u002B) {\r\n items = [...items, i];\r\n}","IsDeferred":false},{"Name":"Direct assign an item to an initialized array","Code":"const items = new Array(MAX_SIZE);\r\nfor (let i = 0; i \u003C MAX_SIZE; i\u002B\u002B) {\r\n items[i] = i; \r\n}","IsDeferred":false},{"Name":"Direct assign an item to an empty array","Code":"const items = new Array();\r\nfor (let i = 0; i \u003C MAX_SIZE; i\u002B\u002B) {\r\n items[i] = i; \r\n}","IsDeferred":false}]}