{"ScriptPreparationCode":null,"TestCases":[{"Name":"For loop","Code":"const array = [1,2,3,4,5,6,7,8,9,10];\r\nlet value = 0;\r\n\r\nfor(let i=0; i\u003Carray.length; i\u002B\u002B) {\r\n\tvalue = value \u002B array[i];\r\n}\r\ndocument.getElementById(\u0027lb-result\u0027).innerText = value;","IsDeferred":false},{"Name":"Reduce","Code":"const array = [1,2,3,4,5,6,7,8,9,10];\r\nlet value = 0;\r\n\r\nvalue = array.reduce((accumulate, currentVal) =\u003E accumulate \u002B currentVal, value);\r\ndocument.getElementById(\u0027lb-result\u0027).innerText = value;","IsDeferred":false}]}