mirror of
https://github.com/xfarrow/javascript-tutorials.git
synced 2025-04-15 10:57:21 +02:00
Update README.md
This commit is contained in:
parent
62b993e2c1
commit
2b9f03f5ec
@ -39,7 +39,7 @@ console.log('I am in the stack');
|
||||
|
||||
What is happening here? `setTimeout` is a JavaScript API which will be taken care
|
||||
of by the `libuv` library which will be responsible for checking when 1000ms have passed.
|
||||
**Concurrently** to the `libuv` library doing what it has to do, the engine executes
|
||||
**Concurrently**, the engine executes
|
||||
`console.log('I am in the stack');`.
|
||||
When 1000ms have elapsed, the callback function associated with the timer (console.log)
|
||||
gets enqueued in the Queue.
|
||||
@ -49,4 +49,4 @@ stack and executes it.
|
||||
## Useful resources
|
||||
* https://www.youtube.com/watch?v=lqLSNG_79lI
|
||||
* https://dev.to/lydiahallie/javascript-visualized-event-loop-3dif
|
||||
* https://www.youtube.com/watch?v=eiC58R16hb8
|
||||
* https://www.youtube.com/watch?v=eiC58R16hb8
|
||||
|
Loading…
x
Reference in New Issue
Block a user