Skip to content

Commit 14cd08b

Browse files
authored
Merge pull request iliakan#538 from jonnykanai/patch-1
Update article.md
2 parents 17aa356 + 4508b6b commit 14cd08b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Engines are complicated. But the basics are easy.
4141
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.
4242
```
4343

44-
## What in-browser JavaScript can do?
44+
## What can in-browser JavaScript do?
4545

4646
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.
4747

@@ -57,7 +57,7 @@ For instance, in-browser JavaScript is able to:
5757
- Get and set cookies, ask questions to the visitor, show messages.
5858
- Remember the data on the browser side ("local storage").
5959

60-
## What in-browser JavaScript can NOT do?
60+
## What can in-browser JavaScript NOT do?
6161

6262
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.
6363

@@ -73,13 +73,13 @@ The examples of such restrictions are:
7373
That is called a "Same Origin Policy". To workaround that, *both pages* must contain a special JavaScript code that handles data exchange.
7474

7575
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.
7777

7878
![](limitations.png)
7979

8080
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.
8181

82-
## Why JavaScript is unique?
82+
## What makes JavaScript unique?
8383

8484
There are at least *three* great things about JavaScript:
8585

@@ -93,7 +93,7 @@ Combined, these 3 things only exist in JavaScript and no other browser technolog
9393

9494
That's what makes JavaScript unique. That's why it is the most widespread way of creating browser interfaces.
9595

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.
9797

9898

9999
## Languages "over" JavaScript
@@ -110,7 +110,7 @@ Examples of such languages:
110110

111111
- [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.
112112
- [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.
114114

115115
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.
116116

0 commit comments

Comments
 (0)