{"ScriptPreparationCode":"var arr = [];\r\n\r\nfor(var i = 0; i \u003C 100000; i\u002B\u002B){\r\n arr.push(Math.random())\r\n}","TestCases":[{"Name":"while loop","Code":"let i=0;\r\nwhile(i \u003C arr.length) {\r\n // do stuff\r\n i\u002B\u002B;\r\n}","IsDeferred":false},{"Name":"// for loop","Code":"for(let i=0; i\u003Carr.length; i\u002B\u002B) {\r\n // do stuff\r\n}","IsDeferred":false},{"Name":"// .forEach() method","Code":"arr.forEach((element) =\u003E {\r\n // do stuff\r\n});","IsDeferred":false},{"Name":"// for...of loop","Code":"for(const element of arr) {\r\n // do stuff\r\n}","IsDeferred":false}]}