Skip to content

Commit 733b0c6

Browse files
committed
2 parents acee694 + 402d7c6 commit 733b0c6

File tree

19 files changed

+34
-29
lines changed

19 files changed

+34
-29
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ There are at least *three* great things about JavaScript:
8989
+ Supported by all major browsers and enabled by default.
9090
```
9191

92-
Combined, these 3 things only exist in JavaScript and no other browser technology.
92+
Combined, these 3 things exist only in JavaScript and no other browser technology.
9393

9494
That's what makes JavaScript unique. That's why it's the most widespread tool to create browser interfaces.
9595

1-js/01-getting-started/2-code-editors/article.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ There are two archetypes: IDE and lightweight editors. Many people feel comforta
1010

1111
The term [IDE](https://en.wikipedia.org/wiki/Integrated_development_environment) (Integrated Development Environment) means a powerful editor with many features that usually operates on a "whole project". As said, that's not just an editor, but a full-scale "development environment".
1212

13-
An IDE loads the project (can be many files), and then allows to navigate between files, provides autocompletion based on the whole project, integrates with version management system (like [git](https://git-scm.com/)), with testing environment and other "project-level" stuff.
13+
An IDE loads the project (can be many files), and then allows navigation between files, provides autocompletion based on the whole project, integrates with version management system (like [git](https://git-scm.com/)), with testing environment and other "project-level" stuff.
1414

1515
If you haven't considered selecting an IDE, look at the following variants:
1616

1717
- IntelliJ editors: [WebStorm](http://www.jetbrains.com/webstorm/) for frontend development and [PHPStorm (PHP)](http://www.jetbrains.com/phpstorm/), [IDEA (Java)](http://www.jetbrains.com/idea/), [RubyMine (Ruby)](http://www.jetbrains.com/ruby/) and other if you need additional languages.
18-
- Visual Studio is fine if you're a .NET developer.
18+
- Visual Studio is fine if you're a .NET developer, and a free version is available ([Visual Studio Community](https://www.visualstudio.com/vs/community/))
1919
- Eclipse-based products, like [Aptana](http://www.aptana.com/) and Zend Studio.
20-
- [Komodo IDE](http://www.activestate.com/komodo-ide) and it's lightweight free version [Komodo Edit](http://www.activestate.com/komodo-edit).
20+
- [Komodo IDE](http://www.activestate.com/komodo-ide) and its lightweight free version [Komodo Edit](http://www.activestate.com/komodo-edit).
2121
- [Netbeans](http://netbeans.org/).
2222

23-
All of them with the exception of Visual Studio are cross-platform. Visual Studio is now available for Mac and for Windows (https://www.visualstudio.com/vs/visual-studio-mac/)
23+
All of the IDEs listed above are available on both Windows and Mac, and the IDEs other than Visual Studio are also available on Linux.
2424

2525
Most IDEs are paid, but have a trial period. Their cost is usually negligible compared to a qualified developer's salary, so just choose the best one for you.
2626

1-js/02-first-steps/01-hello-world/article.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ For instance:
3737
```
3838

3939
```online
40-
You can run the example clicking on a "Play" button in it's right-top corner.
40+
You can run the example by clicking on the "Play" button in its right-top corner.
4141
```
4242

4343
The `<script>` tag contains JavaScript code which is automatically executed when the browser meets the tag.
@@ -49,7 +49,7 @@ The `<script>` tag has a few attributes that are rarely used nowadays, but we ca
4949

5050
The `type` attribute: <code>&lt;script <u>type</u>=...&gt;</code>
5151

52-
: The old standard HTML4 required a script to have the type. Usually it was `type="text/javascript"`. The modern HTML standard assumes this `type` by default, no attribute is required.
52+
: The old standard HTML4 required a script to have a type. Usually it was `type="text/javascript"`. The modern HTML standard assumes this `type` by default, no attribute is required.
5353

5454
The `language` attribute: <code>&lt;script <u>language</u>=...&gt;</code>
5555
: This attribute was meant to show the language of the script. As of now, this attribute makes no sense, the language is JavaScript by default. No need to use it.
@@ -95,7 +95,7 @@ To attach several scripts, use multiple tags:
9595
```
9696

9797
```smart
98-
As a rule, only simplest scripts are put into HTML. More complex ones reside in separate files.
98+
As a rule, only the simplest scripts are put into HTML. More complex ones reside in separate files.
9999
100100
The benefit of a separate file is that the browser will download it and then store in its [cache](https://en.wikipedia.org/wiki/Web_cache).
101101

1-js/02-first-steps/02-structure/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ alert('Hello');
114114
alert('World'); // This comment follows the statement
115115
```
116116

117-
**Multiline comments start with a forward slash and an asterisk <code>"/&#42;"</code> and end with an asterisk and a forward slash <code>"&#42;/"</code>.**
117+
**Multiline comments start with a forward slash and an asterisk <code>/&#42;</code> and end with an asterisk and a forward slash <code>&#42;/</code>.**
118118

119119
Like this:
120120

1-js/02-first-steps/05-types/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ The last three lines may need additional explanations:
231231
There are 7 basic types in JavaScript.
232232

233233
- `number` for numbers of any kind: integer or floating-point.
234-
- `string` for strings. A string may have one more more characters, there's no separate single-character type.
234+
- `string` for strings. A string may have one or more characters, there's no separate single-character type.
235235
- `boolean` for `true`/`false`.
236236
- `null` for unknown values -- a standalone type that has a single value `null`.
237237
- `undefined` for unassigned values -- a standalone type that has a single value `undefined`.

1-js/02-first-steps/06-type-conversions/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ alert( 1 + '2' ); // '12' (string to the right)
9393
alert( '1' + 2 ); // '12' (string to the left)
9494
```
9595
96-
That only happens when one of arguments is a string. Otherwise values are converted to numbers.
96+
That only happens when one of the arguments is a string. Otherwise, values are converted to numbers.
9797
````
9898

9999
## ToBoolean

1-js/02-first-steps/08-comparison/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ alert( null >= 0 ); // (3) *!*true*/!*
176176

177177
Yeah, mathematically that's strange. The last result states that "`null` is equal or greater than zero". Then one of the comparisons above must be correct, but they are both falsy.
178178

179-
The reason is that an equality check `==` and comparisons `> < >= <=` work differently. Comparisons convert `null` to a number, hence treat it as `0`. That's why (1) `null >= 0` is true and (3) `null > 0` is false.
179+
The reason is that an equality check `==` and comparisons `> < >= <=` work differently. Comparisons convert `null` to a number, hence treat it as `0`. That's why (3) `null >= 0` is true and (1) `null > 0` is false.
180180

181181
From the other hand, the equality check `==` for `undefined` and `null` works by the rule, without any conversions. They equal each other and don't equal anything else. That's why (2) `null == 0` is false.
182182

1-js/02-first-steps/09-alert-prompt-confirm/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ For example:
8787
```js run
8888
let isBoss = confirm("Are you the boss?");
8989
90-
alert( isBoss ); // true is OK is pressed
90+
alert( isBoss ); // true if OK is pressed
9191
```
9292
9393
## Summary

1-js/02-first-steps/14-function-basics/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ These are exceptions. Generally functions names should be concise, but descripti
385385

386386
## Functions == Comments
387387

388-
Functions should be short and do exactly one thing. If that thing is big, maybe it's worth to split the function into few smaller functions. Sometimes following this rule may be not easy, but it's a definitely good thing.
388+
Functions should be short and do exactly one thing. If that thing is big, maybe it's worth to split the function into few smaller functions. Sometimes following this rule may not be that easy, but it's a definitely good thing.
389389

390390
A separate function is not only easier to test and debug -- its very existence is a great comment!
391391

1-js/03-code-quality/01-debugging-chrome/article.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ For example, here `1+2` results in `3`, and `hello("debugger")` returns nothing,
4848

4949
Let's examine what's going on within the code of the [example page](debugging/index.html). In `hello.js`, click at the line number `4`. Yes, right on the `"4"` digit, not on the code.
5050

51-
Contratulations! You've set a breakpoint. Please also click on the number for line `8`.
51+
Congratulations! You've set a breakpoint. Please also click on the number for line `8`.
5252

5353
Should look like this (blue is where you should click):
5454

5555
![](chrome-sources-breakpoint.png)
5656

5757
A *breakpoint* is a point of code where the debugger will automatically pause the JavaScript execution.
5858

59-
While the code is paused, we can examine current variables, execute commands in the console etc. In other words, to debug it.
59+
While the code is paused, we can examine current variables, execute commands in the console etc. In other words, we can debug it.
6060

6161
We can always find a list of breakpoints in the right pane. That's useful when we have many breakpoints in various files. It allows to:
6262
- Quickly jump to the breakpoint in the code (by clicking on it in the right pane).
@@ -97,7 +97,7 @@ As the breakpoint is set, the execution pauses at the 4th line:
9797

9898
![](chrome-sources-debugger-pause.png)
9999

100-
Please open the informational dropdowns to the right (labelled with arrows). They allow to examine the current code state:
100+
Please open the informational dropdowns to the right (labelled with arrows). They allow you to examine the current code state:
101101

102102
1. **`Watch` -- shows current values for any expressions.**
103103

0 commit comments

Comments
 (0)