From what I have understood there are three ways of calling asynchronous code:
request.on("event", callback);
fs.open(path, flags, mode, callback);
I found the node-promise library but I don’t get it.
Could someone explain what promises are all about and why I should use it?
Also, why was it removed from Node.js?
Since this question still has many views (like mine) I wanted to point out that: