mirror of
https://github.com/xfarrow/javascript-tutorials.git
synced 2025-04-21 13:57:23 +02:00
Update event-loop.md
This commit is contained in:
parent
738f5311cd
commit
cb1ca667b5
@ -16,7 +16,6 @@ examples:
|
|||||||
|
|
||||||
2.
|
2.
|
||||||
```javascript
|
```javascript
|
||||||
|
|
||||||
const promise = new Promise(function (resolve, reject) {
|
const promise = new Promise(function (resolve, reject) {
|
||||||
console.log('test');
|
console.log('test');
|
||||||
resolve();
|
resolve();
|
||||||
@ -25,4 +24,4 @@ examples:
|
|||||||
});
|
});
|
||||||
|
|
||||||
```
|
```
|
||||||
console.log('test2') will be put in the Event Loop.
|
`console.log('test2')` will be put in the Event Loop.
|
Loading…
x
Reference in New Issue
Block a user