{"ScriptPreparationCode":null,"TestCases":[{"Name":"for loop","Code":"var arr = [];\r\nfor (var i = 0; i\u003C10000; i\u002B\u002B) {\r\n arr.push(i);\r\n}\r\nvar sum = 0;\r\nfor (var j = 0; j \u003C arr.length; j\u002B\u002B) {\r\n sum = sum \u002B j;\r\n}\r\n","IsDeferred":false},{"Name":"for each","Code":"var arr = [];\r\nfor (var i = 0; i\u003C10000; i\u002B\u002B) {\r\n arr.push(i);\r\n}\r\nvar sum = 0;\r\narr.forEach(function(num) {\r\n \tsum = sum \u002B num;\r\n});","IsDeferred":false}]}