Higher-Order Function
A function that takes or returns another function.
What is Higher-Order Function in JavaScript?
Higher-Order Function — A function that takes or returns another function.
function applyDiscount(price, discount) {
return discount(price);
}
Level: Journeyman · More JavaScript terms at this level
Updated