new Promise((resolve, reject) => {
setTimeout(() => {
resolve("Hello");
});
})
- Promise.reject
- Promise.resolve
- Promise.all
- Promise.race
- then
- catch
- finally
Study PromiseA+
new Promise((resolve, reject) => {
setTimeout(() => {
resolve("Hello");
});
})
Study PromiseA+