{"ScriptPreparationCode":null,"TestCases":[{"Name":"Array.prototype.concat","Code":"let array = [1,2,3,4,5,6,7,8];\r\nlet second_array = [9,10,11];\r\narray = array.concat(second_array);","IsDeferred":false},{"Name":"Array.prototype.push","Code":"let array = [1,2,3,4,5,6,7,8];\r\nlet second_array = [9,10,11];\r\narray.push(...second_array);","IsDeferred":false},{"Name":"Array.prototype.reduce","Code":"let array = [1,2,3,4,5,6,7,8];\r\nlet second_array = [9,10,11];\r\narray = second_array.reduce((all, current) =\u003E {\r\n all.push(current);\r\n return all;\r\n}, array);","IsDeferred":false},{"Name":"For-each","Code":"let array = [1,2,3,4,5,6,7,8];\r\nlet second_array = [9,10,11];\r\nsecond_array.forEach(item =\u003E array.push(item));","IsDeferred":false},{"Name":"For-of","Code":"let array = [1,2,3,4,5,6,7,8];\r\nlet second_array = [9,10,11];\r\nfor (var item of second_array) {\r\n array.push(item);\r\n}","IsDeferred":false},{"Name":"For-in","Code":"let array = [1,2,3,4,5,6,7,8];\r\nlet second_array = [9,10,11];\r\nfor (var i in second_array) {\r\n array.push(second_array[i]);\r\n}","IsDeferred":false},{"Name":"For","Code":"let array = [1,2,3,4,5,6,7,8];\r\nlet second_array = [9,10,11];\r\nfor (var i = 0; i \u003C second_array.length; \u002B\u002Bi) {\r\n array[array.length] = second_array[i];\r\n}","IsDeferred":false},{"Name":"The Spread-Operator","Code":"let array = [1,2,3,4,5,6,7,8];\r\nlet second_array = [9,10,11];\r\narray = [...array, ...second_array];","IsDeferred":false}]}