Question: 1. es6-sum-numbers File Edit Selection View Go Debug Terminal Run a challenge M You need to define a function which will add numbers and return

1. es6-sum-numbers File Edit Selection View Go Debug Terminal Run a challenge M You need to define a function which will add numbers and return the sum. Use rest operator feature of ES6+ to accept numbers from the user and calculate its sum. index.js x 1 const sum = () => { 2 } 4 module.exports {sum) I I Example: sum(1) 1/1 sum(1.2) 1/3 sum(1,2,4) 117 sum(1,2,3,4,5,6,7) 11 28
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
