Language: JAVA Script 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(adden(5)); // 15 const addNinety= dynamicAdder (90); // returns a function console.log(addNinety (5)); // 95 *********************************************************/
Language: JAVA Script
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(adden(5)); // 15
const addNinety= dynamicAdder (90); // returns a function
console.log(addNinety (5)); // 95
*********************************************************/
function dynamicAdder(num) {
|// Your code here
}
/****DO NOT MODIFY ANYTHING UNDER THIS LINE****/
try{
| module.exports = dynamicAdder;
}catch (e) {
|module.exports=null;
}

Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images









