Featured
-
List of Top 10 Node.js Frameworks for Beginner Web Developers
JavaScript is one of the most popular language for
by nishant.mishra
Tags
Callbacks in node.js
The basic idea behind using callback is that if we are doing a task and it is taking a longer time to complete. So instead of waiting for this task to be complete we want our node server to process other incomming request.In such situations we ca...
What is callback hell?
Callback hell is the nesting of callbacks that is one callback inside another. Callback hell is very bad thing in nodejs, you should always avoid it.
To avoid callback hell you can:
1) Break callback into individual function
2)...