Intermediate
JavaScript
Q44 / 100
What is currying in JavaScript?
Correct! Well done.
Incorrect.
The correct answer is B) Transforming a function with multiple arguments into a sequence of functions, each taking one argument
B
Correct Answer
Transforming a function with multiple arguments into a sequence of functions, each taking one argument
Explanation
const add = a => b => a + b; add(2)(3) returns 5. Currying enables partial application and functional composition.
Progress
44/100