Promises in Javascript
Yeah, Javascript(JS) has a mechanism called promises and it does exectly samething as we do with our promise. You heard it right it promises to caller that i'll give whatever you requested, I'll come back after working on this you might be busy now.
Ahh, May be I'm confusing you.
Let me give you exect story why I'm saying JS promise as Human promise.