{"ScriptPreparationCode":null,"TestCases":[{"Name":"For loop","Code":"function getAverage(...numbers) {\r\n let sum = 0;\r\n for (const number of numbers) {\r\n sum \u002B= number;\r\n }\r\n return sum / numbers.length;\r\n}\r\n\r\ngetAverage(1, 2, 3, 4, 5);","IsDeferred":false},{"Name":"Reduce","Code":"function getAverage(...numbers) {\r\n return numbers.reduce((a, b) =\u003E a \u002B b) / numbers.length;\r\n}\r\n\r\ngetAverage(1, 2, 3, 4, 5);","IsDeferred":false}]}