{"ScriptPreparationCode":null,"TestCases":[{"Name":"forEach","Code":"let res = 0;\r\ntestData.forEach(function(x) {\r\n res \u002B= x;\r\n});","IsDeferred":false},{"Name":"for","Code":"let res = 0;\r\nfor (let i = 0; i \u003C testData.length; i\u002B\u002B) {\r\n res \u002B= testData[i];\r\n}","IsDeferred":false},{"Name":"for optimized ","Code":"let res = 0;\r\nfor (let i = 0, len = testData.length; i \u003C len; i\u002B\u002B) {\r\n res \u002B= testData[i];\r\n}","IsDeferred":false},{"Name":"reduce ","Code":"var res = testData.reduce(function(sum, x) {\r\n return sum \u002B x;\r\n}, 0);","IsDeferred":false},{"Name":"while","Code":"var res = 0;\r\nvar i = testData.length;\r\nwhile (i--) {\r\n res \u002B= testData[i];\r\n}","IsDeferred":false},{"Name":"for in","Code":"var res = 0;\r\nfor (let data in testData) {\r\n res \u002B= testData[data];\r\n}","IsDeferred":false},{"Name":"for of","Code":"var res = 0;\r\nfor (var data of testData) {\r\n res \u002B= data;\r\n}","IsDeferred":false}]}