Skip to content

Commit a69e9e7

Browse files
committed
minor
1 parent c6271b5 commit a69e9e7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ The terms above are good to remember, because they are used in developer article
3434
3535
Engines are complicated. But the basics are easy.
3636
37-
1. The script is written and distributed as a plain text (can be compressed/optimized by so-called "javascript minifiers").
38-
2. The engine (embedded if it's a browser) reads the script ("parses") and converts ("compiles") it to the machine language.
39-
3. And then it runs, pretty fast.
37+
1. The engine (embedded if it's a browser) reads ("parses") the script.
38+
2. Then it converts ("compiles") the script to the machine language.
39+
3. And then the machine code runs, pretty fast.
4040
41-
The engine applies optimizations on every stage of the process. It even watches the script as it runs, analyzes the data that flows through it and applies optimizations to the machine-code based on that knowledge. That's why the code runs fast.
41+
The engine applies optimizations on every stage of the process. It even watches the compiled script as it runs, analyzes the data that flows through it and applies optimizations to the machine code based on that knowledge. At the end, scripts are quite fast.
4242
```
4343

4444
## What can in-browser JavaScript do?
@@ -72,7 +72,7 @@ The examples of such restrictions are:
7272

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

75-
The limitation is again for user's safety. A page from `http://anysite.com` which a user has opened must not be able to open or access another browser tab with the URL `http://gmail.com` and steal information from there.
75+
The limitation is again for 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 safety limitations.
7777

7878
![](limitations.png)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Parentheses override any precedence, so if we're not satisfied with the order, w
130130

131131
There are many operators in JavaScript. Every operator has a corresponding precedence number. The one with the bigger number executes first. If the precedence is same -- the execution order is from left to right.
132132

133-
An extract from the [precedence table](https://developer.mozilla.org/en/JavaScript/Reference/operators/operator_precedence):
133+
An extract from the [precedence table](https://developer.mozilla.org/en/JavaScript/Reference/operators/operator_precedence) (you don't need to remember this, but note that unary operators are higher than corresponding binary ones):
134134

135135
| Precedence | Name | Sign |
136136
|------------|------|------|

0 commit comments

Comments
 (0)