Practice · 3 of 3
Adder Factory
CHALLENGE
Difficulty: intermediate+25 XP
Implement make_adder(n) returning a function that adds n to its argument. This is a closure: the returned function remembers n.
Press Submit to check your solution.
Back to lesson: Practice: Higher-Order Function Drills