The JavaScript Promise class and object is used for asynchronous task / calculation. A Promise represent an operation that hasn’t completed yet, but is expected in the future.
Read this post on javascripthive.info