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
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Let's see what's so special about JavaScript, what we can achieve with it and wh
8
8
9
9
The programs in this language are called *scripts*. They can be written right in the HTML and execute automatically as the page loads.
10
10
11
-
Scripts are provided and executed a plain text. They don't need a special preparation or a compilation to run.
11
+
Scripts are provided and executed as a plain text. They don't need a special preparation or a compilation to run.
12
12
13
13
In this aspect, JavaScript is very different from another language called [Java](http://en.wikipedia.org/wiki/Java).
14
14
@@ -26,7 +26,7 @@ Different engines have different "codenames", for example:
26
26
27
27
-[V8](https://en.wikipedia.org/wiki/V8_(JavaScript_engine)) -- in Chrome and Opera.
28
28
-[Gecko](https://en.wikipedia.org/wiki/Gecko_(software)) -- in Firefox.
29
-
- ...There are other codenames like "Trident", "Chakra" for different versions of IE, "Nitro" and "SquirrelFish" for Safari etc.
29
+
- ...There are other codenames like "Trident", "Chakra" for different versions of IE, "ChakraCore" for Microsoft Edge, "Nitro" and "SquirrelFish" for Safari etc.
30
30
31
31
These terms above are good to remember, because they are used in developer articles in the internet. We'll use them too. For instance, if "a feature X is supported by V8", then it probably works in Chrome and Opera.
32
32
@@ -72,7 +72,7 @@ The examples of such restrictions are:
72
72
73
73
That is called a "Same Origin Policy". To workaround that, *both pages* must contain a special JavaScript code that handles data exchange.
74
74
75
-
The limitation is again for a user's safety. A page from `http://anysite.com` which a user has opened occasionaly 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 occasionaly must not be able to open or 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 it's ability to receive data from other sites/domains is crippled. Though possible, it requires the explicit agreement (expressed in HTTP headers) from the remote side. Once again, that's safety limitations.
77
77
78
78

@@ -109,13 +109,13 @@ The modern tools make the transpilation very fast and transparent, actually allo
109
109
Examples of such languages:
110
110
111
111
-[CoffeeScript](http://coffeescript.org/) is a "syntax sugar" for JavaScript, it introduces shorter syntax, allowing to write more precise and clear code. Usually Ruby guys like it.
112
-
-[TypeScript](http://www.typescriptlang.org/) is concentrated on adding "strict data typing", to simplify development and support of complex systems. Developed by Microsoft.
113
-
-[Dart](https://www.dartlang.org/) is a standalone language that has it's own engine that runs in non-browser environments (like mobile apps). It was initially offered by Google as a replacement for JavaScript, but as of browsers require it to be transpiled to JavaScript just like the ones above.
112
+
-[TypeScript](http://www.typescriptlang.org/) is concentrated on adding "strict data typing", to simplify development and support of complex systems. It is developed by Microsoft.
113
+
-[Dart](https://www.dartlang.org/) is a standalone language that has it's own engine that runs in non-browser environments (like mobile apps). It was initially offered by Google as a replacement for JavaScript, but as of now, browsers require it to be transpiled to JavaScript just like the ones above.
114
114
115
115
There are more. Of course even if we use one of those languages, we should also know JavaScript, to really understand what we're doing.
116
116
117
117
## Summary
118
118
119
-
- JavaScript was initially created as a browser-only language, but now used in many other environments as well.
120
-
- At this moment, JavaScript as a unique position as a most widely adopted browser language with full integration with HTML/CSS.
121
-
- There are over languages that get "transpiled" to JavaScript and provide certain features. It is recommended to take a look at them, at least briefly, after mastering JavaScript.
119
+
- JavaScript was initially created as a browser-only language, but now it is used in many other environments as well.
120
+
- At this moment, JavaScript has a unique position as a most widely adopted browser language with full integration with HTML/CSS.
121
+
- There are many languages that get "transpiled" to JavaScript and provide certain features. It is recommended to take a look at them, at least briefly, after mastering JavaScript.
0 commit comments