diff --git a/index.js b/index.js index 59cfd431..1611e9d4 100644 --- a/index.js +++ b/index.js @@ -6,4 +6,11 @@ function add(numbers) { } return result; } -module.exports = { add }; +function multi(numbers) { + let result = 1; + for (let num of numbers){ + result = result * num; + } + return result; +} +module.exports = { add, multi };