{"ScriptPreparationCode":null,"TestCases":[{"Name":"with reduce()","Code":"const div = document.getElementById(\u0027min-data\u0027);\r\n\r\nconst newArray = [];\r\nfor(let i = 0; i \u003C 10000000; i\u002B\u002B){\r\n\tconst num = Math.floor(Math.random() * 10000000);\r\n\tnewArray.push(num);\r\n} \r\nnewArray.reduce((a, b) =\u003E (a \u003C b ? a : b), []);\r\ndiv.innerHTML = newArray[0].toString();","IsDeferred":false},{"Name":"with sort()","Code":"const div = document.getElementById(\u0027min-data\u0027);\r\n\r\nconst newArray = [];\r\nfor(let i = 0; i \u003C 10000000; i\u002B\u002B){\r\n\tconst num = Math.floor(Math.random() * 10000000);\r\n\tnewArray.push(num);\r\n} \r\nnewArray.sort((a, b) =\u003E a - b);\r\ndiv.innerHTML = newArray[0].toString();","IsDeferred":false}]}