# 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.

```javascript
function applyDiscount(price, discount) {
    return discount(price);
}
```

Level: Journeyman · [More JavaScript terms at this level](https://www.ask-codey.com/glossary/subjects/javascript/journeyman)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/higher-order-function-javascript
