Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. setTimeout(() => {
  2. console.log("timeout1");
  3. }, 0);
  4. function toto() {
  5. Promise.resolve().then(() => {
  6. console.log("promise2");
  7. });
  8. }
  9. function titi() {
  10. console.log(7);
  11. }
  12.  
  13. Promise.resolve().then(() => {
  14. console.log("promise1");
  15. });
  16. console.log(4);
  17. toto();
  18. console.log(5);
  19. titi();
  20. Promise.resolve().then(() => {
  21. console.log("promise3");
  22. });
  23. console.log(6);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement