Mid
From PDF
Node.js
Node.js
Explain the difference between callbacks, promises, and async/await.
- Callbacks: Functions passed as arguments, executed when async operation
finishes. Can lead to “callback hell.”
- Promises: Objects representing future results; allow chaining with .then().
- Async/await: Syntactic sugar over promises; lets you write async code that looks
synchronous, improving readability.
Share this Q&A
Share preview image: https://www.toolliyo.com/images/toolliyo-logo.png