Callbacks In Node.Js

RisingStack's services:

Search

Node.js Experts

Learn more at risingstack.com

Sign up to our newsletter!

In this article:

Callbacks are necessary because they allow you to queue up multiple I/O processes without having to wait for them to finish. Because these tasks run asynchronously, the app can get done more things at once (if the hardware can handle it). In Node.js, callbacks are used as a function called when a task is finished, and behaves similarly as a notification about the completion of the given task.

Share this post

Twitter
Facebook
LinkedIn
Reddit

Node.js
Experts

Learn more at risingstack.com

Node.js Experts