Fix name of JavaScript
This commit is contained in:
parent
3b14ed8185
commit
c5ce5578fc
32 changed files with 61 additions and 61 deletions
|
@ -30,7 +30,7 @@ As said in the [specification](https://tc39.github.io/ecma262/#sec-jobs-and-job-
|
|||
- The queue is first-in-first-out: tasks enqueued first are run first.
|
||||
- Execution of a task is initiated only when nothing else is running.
|
||||
|
||||
Or, to say that simply, when a promise is ready, its `.then/catch/finally` handlers are put into the queue. They are not executed yet. Javascript engine takes a task from the queue and executes it, when it becomes free from the current code.
|
||||
Or, to say that simply, when a promise is ready, its `.then/catch/finally` handlers are put into the queue. They are not executed yet. JavaScript engine takes a task from the queue and executes it, when it becomes free from the current code.
|
||||
|
||||
That's why "code finished" in the example above shows first.
|
||||
|
||||
|
@ -54,7 +54,7 @@ Now the order is as intended.
|
|||
|
||||
## Event loop
|
||||
|
||||
In-browser Javascript, as well as Node.js, is based on an *event loop*.
|
||||
In-browser JavaScript, as well as Node.js, is based on an *event loop*.
|
||||
|
||||
"Event loop" is a process when the engine sleeps and waits for events, then reacts on those and sleeps again.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue