Update README.md

This commit is contained in:
xfarrow 2024-08-19 11:43:27 +02:00 committed by GitHub
parent 62b993e2c1
commit 2b9f03f5ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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