{"ScriptPreparationCode":null,"TestCases":[{"Name":"forEach","Code":"var res = 0;\r\ntestData.forEach(function(x) {\r\n res \u002B= x;\r\n});","IsDeferred":false},{"Name":"for","Code":"var res = 0;\r\nfor (var i = 0; i \u003C testData.length; i\u002B\u002B) {\r\n res \u002B= testData[i];\r\n}","IsDeferred":false},{"Name":"for optimized ","Code":"var res = 0;\r\nfor (var 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 (var data in testData) {\r\n res \u002B= testData[i];\r\n}","IsDeferred":false},{"Name":"for of","Code":"var res = 0;\r\nfor (var data of testData) {\r\n res \u002B= testData[i];\r\n}","IsDeferred":false},{"Name":"for of babel","Code":"var res = 0;\r\nvar _iteratorNormalCompletion = true;\r\nvar _didIteratorError = false;\r\nvar _iteratorError = undefined;\r\n\r\ntry {\r\n for (var _iterator = testData[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\r\n var value = _step.value;\r\n\r\n console.log(value);\r\n }\r\n} catch (err) {\r\n _didIteratorError = true;\r\n _iteratorError = err;\r\n} finally {\r\n try {\r\n res \u002B= testData[i];\r\n if (!_iteratorNormalCompletion \u0026\u0026 _iterator.return) {\r\n _iterator.return();\r\n }\r\n } finally {\r\n if (_didIteratorError) {\r\n throw _iteratorError;\r\n }\r\n }\r\n}","IsDeferred":false}]}