Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const promise1 = (async () => {
- console.log(promise1); // ReferenceError: promise is not defined
- })();
- const promise2 = (async () => {
- await Promise.resolve();
- console.log(promise2); // Promise
- })();
Add Comment
Please, Sign In to add comment