Question: use javascript please Write a function called `dynamicAdder(num)`. The dynamicAdder function will return a new function that will allow us to create new separate custom
use javascript please
Write a function called `dynamicAdder(num)`. The dynamicAdder function will
return a new function that will allow us to create new separate custom
adding functions.
Look below to see how this function is invoked:
const addTwo = dynamicAdder(2); // returns a function
console.log(addTwo(5)); // 7
const addTen = dynamicAdder(10); // returns a function
console.log(addTen(5)); // 15
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
