Skip to content

Commit 509eaf0

Browse files
authored
Merge pull request #481 from odv/en
Correct misspelling
2 parents cea455d + c89d75f commit 509eaf0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The examples of such restrictions are:
6868
Modern browsers allow it to work with files, but the access is limited and only provided if the user does certain actions, like "dropping" a file into a browser window or selecting it via an `<input>` tag.
6969

7070
There are ways to interact with camera/microphone and other devices, but they require an explicit user's 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).
71-
- 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 compe from different sites (from a different domain, protocol or port).
71+
- 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

7373
That is called a "Same Origin Policy". To workaround that, *both pages* must contain a special JavaScript code that handles data exchange.
7474

1-js/02-first-steps/07-operators/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ See, it doesn't matter whether the first operand is a string or the second one.
5656
5757
The string concatenation and conversion is the special feature of the binary plus `"+"`. Other arithmetic operators work only with numbers. They always convert their operands to numbers.
5858
59-
For instance, substraction and division:
59+
For instance, subtraction and division:
6060
6161
```js run
6262
alert( 2 - '1' ); // 1

0 commit comments

Comments
 (0)