In this post we will be discussing about Callback Mechanism in Node.js. A normal callback is an asynchronous equivalent for a function or method which is being called when a task is completed. Callback is sometimes little confusing for a newbie, so through this post we will try to explain the Callback Mechanism in simple way.
We can also termed Callback as a functional programming technique that provides us the advantage of passing a function as an argument to another function.
Let's take an example, we have a function call
which takes two arguments and returns the sum of it and then we have a function called
... read the whole story at www.codingdefined.com.