Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. function greetUser() {
  2. console.log('Hey there!');
  3. }
  4. Function blockFor1Sec () {
  5. // blocks the JavaScript thread for 1 second
  6. }
  7. setTimeout(greetUser, 0); // executes last
  8. blockFor1Sec() // executes first
  9. const printMe = console.log('Print me!'); // executes second
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement