{"ScriptPreparationCode":null,"TestCases":[{"Name":"Spread","Code":"const array1 = [1, 3, 9];\r\nconst array2 = [2, 9, 4];\r\n\r\nconsole.log(mergeSort(array1, array2));\r\n\r\nfunction mergeSort(array1, array2) {\r\n let mergedArray = [...array1, ...array2];\r\n return mergedArray.sort((a,b) =\u003E a-b);\r\n}","IsDeferred":false},{"Name":"Concat","Code":"const array1 = [1, 3, 9];\r\nconst array2 = [2, 9, 4];\r\n\r\nconsole.log(mergeSort(array1, array2));\r\n\r\nfunction mergeSort(array1, array2) {\r\n let mergedArray = array1.concat(array2);\r\n return mergedArray.sort((a,b) =\u003E a-b);\r\n}","IsDeferred":false}]}