Promise(resolve,reject){
pending: initial state, neither fulfilled nor rejected.
fulfilled: meaning that the operation was completed successfully.
rejected: meaning that the operation failed.
}
.then{resolve}
.catch(reject)
.finally(finally)
pending: initial state, neither fulfilled nor rejected.
fulfilled: meaning that the operation was completed successfully.
rejected: meaning that the operation failed.
}
.then{resolve}
.catch(reject)
.finally(finally)