{"ScriptPreparationCode":null,"TestCases":[{"Name":"1\uFE0F\u20E3 Array.from()","Code":"const arr = Array.from({ length: 10 }, () =\u003E []);","IsDeferred":false},{"Name":"2\uFE0F\u20E3 Array() and map()","Code":"const arr2 = Array(10)\r\n .fill()\r\n .map(() =\u003E []);","IsDeferred":false},{"Name":"3\uFE0F\u20E3 for loop","Code":"const arr3 = [];\r\nfor (let i = 0; i \u003C 10; i \u002B= 1) {\r\n arr3.push([]);\r\n}","IsDeferred":false},{"Name":"4\uFE0F\u20E3 while loop","Code":"const arr4 = [];\r\nlet i = 0;\r\nwhile (i \u003C 10) {\r\n arr4.push([]);\r\n i\u002B\u002B;\r\n}","IsDeferred":false},{"Name":"5\uFE0F\u20E3 do while loop","Code":"const arr5 = [];\r\nlet j = 0;\r\ndo {\r\n arr5.push([]);\r\n j\u002B\u002B;\r\n} while (j \u003C 10);","IsDeferred":false},{"Name":"6\uFE0F\u20E3 for of loop","Code":"const arr6 = [];\r\nfor (const _ of Array(10)) {\r\n arr6.push([]);\r\n}","IsDeferred":false},{"Name":"7\uFE0F\u20E3 ... spread operator, Array() and map()","Code":"const arr7 = [...Array(10)].map(() =\u003E []);","IsDeferred":false},{"Name":"8\uFE0F\u20E3 Array() and fill()","Code":"const arr8 = Array(10).fill([]);","IsDeferred":false}]}