The Rest parameter and spread operator made simple. Part 1
So we've been tasked to create a program that adds numbers passed to it. That is easy, we just create a function with a few parameters that we use to calculate the sum of numbers.
function addNums(num1, num2) {
return num1 + num2
}
let ans = addNu...
pseremba.hashnode.dev3 min read