const arr = [-2,135,67,3,15,-64,-44,25,50];
{"ScriptPreparationCode":"const arr = [-2,135,67,3,15,-64,-44,25,50];","TestCases":[{"Name":"Array.sort","Code":"const arr = [-2,135,67,3,15,-64,-44,25,50];\r\nconst newArr = arr.sort()\r\nconst min = newArr[0]\r\nconst max = newArr[arr.length - 1]","IsDeferred":false},{"Name":"Math.min and Math.max","Code":"const arr = [-2,135,67,3,15,-64,-44,25,50];\r\nconst min = Math.min(...arr);\r\nconst max = Math.max(...arr);","IsDeferred":false}]}