{"ScriptPreparationCode":null,"TestCases":[{"Name":"loop","Code":"const array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];\r\nlet result = 0;\r\n\r\nfor (let i = 0; i \u003C array.length; \u002B\u002Bi) {\r\n result \u002B= array[i];\r\n}","IsDeferred":false},{"Name":"reduce","Code":"const array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];\r\nconst result = array.reduce((previous, current) =\u003E previous \u002B current, 0);\r\n","IsDeferred":false}]}