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
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ Engines are complicated. But the basics are easy.
41
41
The engine applies optimizations on every stage of the process. It even watches the script as it runs, analyzes the data which flows through it and applies optimizations to the machine-code basing on that knowledge.
42
42
```
43
43
44
-
## What in-browser JavaScript can do?
44
+
## What can in-browser JavaScript do?
45
45
46
46
The modern JavaScript is a "safe" programming language. It does not provide low-level access to memory or CPU, because it was initially created for browsers which do not require it.
47
47
@@ -57,7 +57,7 @@ For instance, in-browser JavaScript is able to:
57
57
- Get and set cookies, ask questions to the visitor, show messages.
58
58
- Remember the data on the browser side ("local storage").
59
59
60
-
## What in-browser JavaScript can NOT do?
60
+
## What can in-browser JavaScript NOT do?
61
61
62
62
JavaScript abilities in the browser are limited for the sake of the user's safety. The aim is to prevent an evil webpage from accessing private information or harming the user's data.
63
63
@@ -73,13 +73,13 @@ The examples of such restrictions are:
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
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
-
- 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.
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 the explicit agreement (expressed in HTTP headers) from the remote side. Once again, that's safety limitations.
77
77
78
78

79
79
80
80
Such limits do not exist if JavaScript is used outside of the browser, for example on a server. Modern browsers also allow installing plugin/extensions which may get extended permissions.
81
81
82
-
## Why JavaScript is unique?
82
+
## What makes JavaScript unique?
83
83
84
84
There are at least *three* great things about JavaScript:
85
85
@@ -93,7 +93,7 @@ Combined, these 3 things only exist in JavaScript and no other browser technolog
93
93
94
94
That's what makes JavaScript unique. That's why it is the most widespread way of creating browser interfaces.
95
95
96
-
While planning to learn a new technology, it's beneficial to check it's perspectives. So let's move on to the modern trends that include new languages and browser abilities.
96
+
While planning to learn a new technology, it's beneficial to check its perspectives. So let's move on to the modern trends that include new languages and browser abilities.
97
97
98
98
99
99
## Languages "over" JavaScript
@@ -110,7 +110,7 @@ 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
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.
113
+
-[Dart](https://www.dartlang.org/) is a standalone language that has its 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.
0 commit comments