You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/01-getting-started/1-intro/article.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,11 +34,11 @@ The terms above are good to remember, because they are used in developer article
34
34
35
35
Engines are complicated. But the basics are easy.
36
36
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.
40
40
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 machinecode based on that knowledge. At the end, scripts are quite fast.
42
42
```
43
43
44
44
## What can in-browser JavaScript do?
@@ -72,7 +72,7 @@ The examples of such restrictions are:
72
72
73
73
This is called the "Same Origin Policy". To work around that, *both pages* must contain a special JavaScript code that handles data exchange.
74
74
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.
76
76
- 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.
Copy file name to clipboardExpand all lines: 1-js/02-first-steps/07-operators/article.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,7 +130,7 @@ Parentheses override any precedence, so if we're not satisfied with the order, w
130
130
131
131
There are many operators inJavaScript. 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.
132
132
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):
0 commit comments