What is a callback, and what is callback hell?
Model answer
A callback is a function passed to another function to be called later, for example when a file has been read. Nesting many callbacks makes code hard to read and handle errors in, called callback hell. Promises and async/await solve it.
Learn this topic
Async JavaScript in Node: Promises, async/await and the Event Loop in the course Node.js and Express: Build a Back End API from Scratch.
Sign in to add your own answer.