Skip to content

Commit ed86221

Browse files
committed
fixes
1 parent 702362f commit ed86221

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

1-js/01-getting-started/1-intro/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Examples of such restrictions include:
7070
There are ways to interact with camera/microphone and other devices, but they require a user's explicit permission. So a JavaScript-enabled page may not sneakily enable a web-camera, observe the surroundings and send the information to the [NSA](https://en.wikipedia.org/wiki/National_Security_Agency).
7171
- Different tabs/windows generally do not know about each other. Sometimes they do, for example when one window uses JavaScript to open the other one. But even in this case, JavaScript from one page may not access the other if they come from different sites (from a different domain, protocol or port).
7272

73-
This is called the "Same Origin Policy". To work around that, *both pages* must contain a special JavaScript code that handles data exchange.
73+
This is called the "Same Origin Policy". To work around that, *both pages* must agree for data exchange and contain a special JavaScript code that handles it. We'll cover that in the tutorial.
7474

7575
This limitation is, again, for the user's safety. A page from `http://anysite.com` which a user has opened must not be able to access another browser tab with the URL `http://gmail.com` and steal information from there.
7676
- JavaScript can easily communicate over the net to the server where the current page came from. But its ability to receive data from other sites/domains is crippled. Though possible, it requires explicit agreement (expressed in HTTP headers) from the remote side. Once again, that's a safety limitation.

1-js/02-first-steps/16-javascript-specials/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ Comparisons
161161

162162
Other comparisons convert to a number as well.
163163

164-
The strict equality operator `===` doesn't do the conversion: different types always mean different values for it, so:
164+
The strict equality operator `===` doesn't do the conversion: different types always mean different values for it.
165165

166166
Values `null` and `undefined` are special: they equal `==` each other and don't equal anything else.
167167

1-js/11-async/05-promise-api/01-promise-errors-as-results/solution.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Promise.all(
1212

1313
Here we have an array of `fetch(...)` promises that goes to `Promise.all`.
1414

15-
We can't change the way `Promise.all` works: if it detects an error, then it rejects with it. So we need to prevent any error from occurring. Instead, if a `fetch` error happens, we need to treat it as a "normal" result.
15+
We can't change the way `Promise.all` works: if any promise rejects with an error, then `Promise.all` as a whole rejects with it. So we need to prevent any error from occurring. Instead, if a `fetch` error happens, we need to treat it as a "normal" result.
1616

1717
Here's how:
1818

0 commit comments

Comments
 (0)