Guest User

Untitled

a guest
Nov 13th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. const promise1 = (async () => {
  2. console.log(promise1); // ReferenceError: promise is not defined
  3. })();
  4.  
  5.  
  6. const promise2 = (async () => {
  7. await Promise.resolve();
  8. console.log(promise2); // Promise
  9. })();
Add Comment
Please, Sign In to add comment