Intermediate Algorithm Scripting - Arguments Optional

yeah, it might be true.
I think I need to go through some concepts before I try further.
Thank you @JeremyLT

The idea of making a function inside of a function and having that inner function use data from the outer function takes some getting used to.

sure I’ll learn that:)

Take this as a simplified case:

Make a function that returns a brand new function that sums with the argument of the outer function

function createAdder(base) {

}

const addFive = createAdder(5);
console.log(addFive(3)); // Should log 8

const addTwo = createAdder(2);
console.log(addTwo(4)); // Should log 6

Hii, asking a counter-question to this, late though. Actually got my functional programming concepts mixed up.
Did you point to use of “closures” in this prog. challenge ??

Yup! A closure is key here