# Callback

say it: **“KAWL-bak”** **/ˈkɔːlbæk/**

A function run when work finishes; Node's original style.

## What is **Callback**?

A **callback** is a function passed to another to run when work finishes, the original Node style before promises.

```javascript
fs.readFile('recipes.json', 'utf8', (err, text) => {
  if (err) return console.error(err);
  console.log(text);
});
```

Level: Journeyman · [More Node.js terms at this level](https://www.ask-codey.com/glossary?category=nodejs&level=3)

Updated: November 17, 2026

Source: https://www.ask-codey.com/glossary/callback
