Skip to content

Commit e3e3b89

Browse files
authored
Merge pull request #40 from javascript-tutorial/master
update
2 parents 718c793 + 2a5716f commit e3e3b89

File tree

2 files changed

+3
-3
lines changed
  • 1-js/10-error-handling/2-custom-errors
  • 2-ui/99-ui-misc/03-event-loop/2-micro-macro-queue

2 files changed

+3
-3
lines changed

1-js/10-error-handling/2-custom-errors/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Error {
3838

3939
Now let's inherit `ValidationError` from it and try it in action:
4040

41-
```js run untrusted
41+
```js run
4242
*!*
4343
class ValidationError extends Error {
4444
*/!*

2-ui/99-ui-misc/03-event-loop/2-micro-macro-queue/solution.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ console.log(7);
4040

4141
To summarize,
4242

43-
1. Numbers `1` и `7` show up immediately, because simple `console.log` calls don't use any queues.
43+
1. Numbers `1` and `7` show up immediately, because simple `console.log` calls don't use any queues.
4444
2. Then, after the main code flow is finished, the microtask queue runs.
4545
- It has commands: `console.log(3); setTimeout(...4); console.log(5)`.
46-
- Numbers `3` и `5` show up, while `setTimeout(() => console.log(4))` adds the `console.log(4)` call to the end of the macrotask queue.
46+
- Numbers `3` and `5` show up, while `setTimeout(() => console.log(4))` adds the `console.log(4)` call to the end of the macrotask queue.
4747
- The macrotask queue is now: `console.log(2); console.log(6); console.log(4)`.
4848
3. After the microtask queue becomes empty, the macrotask queue executes. It outputs `2`, `6`, `4`.
4949

0 commit comments

Comments
 (0)