Section 3. Chapter 6
single
Challenge: Returning a Multiplier Function
Swipe to show menu
Task
Swipe to start coding
Write a function that returns another function which multiplies its argument by a fixed number.
- Call the nested function
multiplier. - The returned function must multiply its input by the value of
n. - The outer function must return the inner function.
Solution
Everything was clear?
Thanks for your feedback!
Section 3. Chapter 6
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat