{"ScriptPreparationCode":null,"TestCases":[{"Name":"For loop","Code":"const data = Array.from({length: 10000}, () =\u003E Math.floor(Math.random() * 1000));\r\nlet sum = 0;\r\nfor (let i=0; i \u003C data.length; i\u002B\u002B){\r\n sum \u002B= data[i];\r\n}","IsDeferred":false},{"Name":"For of loop","Code":"const data = Array.from({length: 10000}, () =\u003E Math.floor(Math.random() * 1000));\r\nlet sum = 0;\r\nfor (const n of data){\r\n sum \u002B= n;\r\n}","IsDeferred":false}]}