{"ScriptPreparationCode":null,"TestCases":[{"Name":"for","Code":"const input = []\r\nfor (let i = 0; i \u003C 10000; i\u002B\u002B) {\r\n input[i] = Math.floor(Math.random() * 10000)\r\n}\r\n\r\nlet result = 0\r\nfor(let i = 0; i \u003C input.length; i\u002B\u002B) {\r\n result \u002B= input[i]\r\n}\r\nreturn result","IsDeferred":false},{"Name":"forEach","Code":"const input = []\r\nfor (let i = 0; i \u003C 10000; i\u002B\u002B) {\r\n input[i] = Math.floor(Math.random() * 10000)\r\n}\r\n\r\nif(!input || !input.length) return 0\r\nlet result = 0\r\ninput.forEach(v =\u003E result \u002B v)\r\nreturn result","IsDeferred":false},{"Name":"reduce","Code":"const input = []\r\nfor (let i = 0; i \u003C 10000; i\u002B\u002B) {\r\n input[i] = Math.floor(Math.random() * 10000)\r\n}\r\n\r\nif(!input || !input.length) return 0\r\nreturn input.reduce((a, b) =\u003E a\u002Bb);","IsDeferred":false}]}