{"ScriptPreparationCode":"const append = (arr1, arr2) =\u003E {\r\n // Pre-allocate space for the new elements\r\n arr1.length \u002B= arr2.length;\r\n\r\n // Copy elements from arr2 to arr1\r\n for (let i = 0; i \u003C arr2.length; i\u002B\u002B) {\r\n arr1[arr1.length - arr2.length \u002B i] = arr2[i];\r\n }\r\n\r\n return arr1;\r\n};\r\n","TestCases":[{"Name":"Array.prototype.concat","Code":"var params = [ \u0022hello\u0022, true, 7 ];\r\nvar other = [ 1, 2 ].concat(params);","IsDeferred":false},{"Name":"spread operator","Code":"var params = [ \u0022hello\u0022, true, 7 ]\r\nvar other = [ 1, 2, ...params ]","IsDeferred":false},{"Name":"Push","Code":"var params = [ \u0022hello\u0022, true, 7 ];\r\nvar other = [ 1, 2 ].push(...params);","IsDeferred":false},{"Name":"assign","Code":"var params = [ \u0022hello\u0022, true, 7 ];\r\nvar other = append([1,2], params);","IsDeferred":false}]}