Skip to content

Commit 6637d0c

Browse files
committed
2 parents af16c20 + 745fff5 commit 6637d0c

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

1-js/06-advanced-functions/01-recursion/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function pow(x, n) {
9696
9797
The maximal number of nested calls (including the first one) is called *recursion depth*. In our case, it will be exactly `n`.
9898
99-
The maximal recursion depth is limited by JavaScript engine. We can make sure about 10000, some engines allow more, but 100000 is probably out of limit for the majority of them. There are automatic optimizations that help alleviate this ("tail calls optimizations"), but they are not yet supported everywhere and work only in simple cases.
99+
The maximal recursion depth is limited by JavaScript engine. We can rely on it being 10000, some engines allow more, but 100000 is probably out of limit for the majority of them. There are automatic optimizations that help alleviate this ("tail calls optimizations"), but they are not yet supported everywhere and work only in simple cases.
100100
101101
That limits the application of recursion, but it still remains very wide. There are many tasks where recursive way of thinking gives simpler code, easier to maintain.
102102

1-js/06-advanced-functions/03-closure/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ Hopefully, the situation with outer variables is clear now. For most situations
313313

314314
## Environments in detail
315315

316-
Here's what's going on in the `makeCounter` example step-by-step, follow it to make sure that you know things in the very detail.
316+
Here's what's going on in the `makeCounter` example step-by-step, follow it to make sure that you understand how it works in detail.
317317

318318
Please note the additional `[[Environment]]` property is covered here. We didn't mention it before for simplicity.
319319

1-js/06-advanced-functions/05-global-object/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The global object provides variables and functions that are available anywhere.
55

66
In a browser it is named `window`, for Node.js it is `global`, for other environments it may have another name.
77

8-
Recently, `globalThis` was added to the language, as a standartized name for a global object, that should be supported across all environments. In some browsers, namely non-Chromium Edge, `globalThis` is not yet supported, but can be easily polyfilled.
8+
Recently, `globalThis` was added to the language, as a standardized name for a global object, that should be supported across all environments. In some browsers, namely non-Chromium Edge, `globalThis` is not yet supported, but can be easily polyfilled.
99

1010
We'll use `window` here, assuming that our environment is a browser. If your script may run in other environments, it's better to use `globalThis` instead.
1111

2-ui/1-document/03-dom-navigation/3-navigation-links-which-null/solution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
1. Yes, true. The element `elem.lastChild` is always the last one, it has no `nextSibling`.
2-
2. No, wrong, because `elem.children[0]` is the first child *among elements*. But there may exist non-element nodes before it. So `previousSibling` may be a text node. Also, if there are no children, then trying to access `elem.children[0]`
2+
2. No, wrong, because `elem.children[0]` is the first child *among elements*. But there may exist non-element nodes before it. So `previousSibling` may be a text node.
33

44
Please note: for both cases if there are no children, then there will be an error.
55

5-network/01-fetch/01-fetch-users/task.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Fetch users from GitHub
22

3-
Create an async function `getUsers(names)`, that gets an array of GitHub logins, fetche the users from GitHub and returns an array of GitHub users.
3+
Create an async function `getUsers(names)`, that gets an array of GitHub logins, fetches the users from GitHub and returns an array of GitHub users.
44

5-
The GitHub url with user informaiton for the given `USERNAME` is: `https://api.github.com/users/USERNAME`.
5+
The GitHub url with user information for the given `USERNAME` is: `https://api.github.com/users/USERNAME`.
66

77
There's a test example in the sandbox.
88

0 commit comments

Comments
 (0)