{"ScriptPreparationCode":"var number = \u002Bprompt(\u0027Enter array length\u0027)\r\nvar arr = new Array(number).fill().map((_, i) =\u003E i);\r\n\r\nfunction sum(a, b) {\r\n return a \u002B b;\r\n}","TestCases":[{"Name":"for of","Code":"for (const i of arr) {\r\n sum(i, i);\r\n}","IsDeferred":false},{"Name":"forEach","Code":"arr.forEach((i) =\u003E {\r\n sum(i, i);\r\n});","IsDeferred":false}]}