feat: add console.log in Promise microtasks (#481)
This commit is contained in:
parent
3ce2b2be20
commit
7dcacb1374
|
|
@ -56,7 +56,10 @@ console.log('one');
|
|||
setTimeout(function() {
|
||||
console.log('two');
|
||||
}, 0);
|
||||
console.log('three');
|
||||
Promise.resolve().then(function() {
|
||||
console.log('three');
|
||||
})
|
||||
console.log('four');
|
||||
```
|
||||
|
||||
*Question: What is the difference between these four promises?*
|
||||
|
|
|
|||
Loading…
Reference in New Issue