Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setTimeout(() => {
- console.log("timeout1");
- }, 0);
- function toto() {
- Promise.resolve().then(() => {
- console.log("promise2");
- });
- }
- function titi() {
- console.log(7);
- }
- Promise.resolve().then(() => {
- console.log("promise1");
- });
- console.log(4);
- toto();
- console.log(5);
- titi();
- Promise.resolve().then(() => {
- console.log("promise3");
- });
- console.log(6);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement