Skip to content

Commit 686ae52

Browse files
committed
2 parents c7add66 + 87e159f commit 686ae52

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

1-js/01-getting-started/3-devtools/article.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Developer console
22

3-
A code is error-prone. You are quite likely to have errors... Oh what I'm talking? You are *absolutely* going to make errors, at least if you're a human, not a [robot](https://en.wikipedia.org/wiki/Bender_(Futurama)).
3+
A code is prone to errors. You are quite likely to have errors... Oh, what am I talking about? You are *absolutely* going to make errors, at least if you're a human, not a [robot](https://en.wikipedia.org/wiki/Bender_(Futurama)).
44

55
But in the browser, a user doesn't see the errors by default. So, if something goes wrong in the script, we won't see what's broken and can't fix it.
66

77
To see errors and get a lot of other useful information about scripts, browsers have embedded "developer tools".
88

9-
Most often developers lean towards Chrome or Firefox for the development, because developer tools are best there. Other browsers also provide developer tools, sometimes with special features, but usually are in "catching-up" position. So most people have a "favorite" browser and switch to others if a problem is browser-specific.
9+
Most often developers lean towards Chrome or Firefox for the development, because those browsers have the best developer tools. Other browsers also provide developer tools, sometimes with special features, but are usually playing "catching-up" to Chrome or Firefox. So most people have a "favorite" browser and switch to others if a problem is browser-specific.
1010

11-
Developer tools are really powerful, there are many features. Here, for the start, we'll learn how to open them, look at errors and run JavaScript commands.
11+
Developer tools are really powerful, there are many features. To start, we'll learn how to open them, look at errors and run JavaScript commands.
1212

1313
[cut]
1414

@@ -26,7 +26,7 @@ It looks somewhat like this:
2626

2727
![chrome](chrome.png)
2828

29-
The exact look depends on your Chrome version. It changes from time to time, but should be similar.
29+
The exact look of developer tools depends on your version of Chrome. It changes from time to time, but should be similar.
3030

3131
- Here we can see the red-colored error message. In this case the script contains an unknown "lalala" command.
3232
- On the right, there is a clickable link to the source `bug.html:12` with the line number where the error has occured.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ As the time goes, the program becomes more and more complex. It becomes necessar
102102

103103
Comments can be put into any place of the script. They don't affect the execution, because the engine simply ignores them.
104104

105-
**One-line comments start with the two slash characters `//`.**
105+
**One-line comments start with the two forward slash characters `//`.**
106106

107107
The rest of the line is a comment. It may occupy a full line of its own or follow a statement.
108108

@@ -114,7 +114,7 @@ alert('Hello');
114114
alert('World'); // This comment follows the statement
115115
```
116116

117-
**Multiline comments start with a slash and a star <code>"/&#42;"</code> and end with a star and a 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

@@ -156,6 +156,6 @@ alert( 'World' );
156156

157157
Please, don't hesitate to comment your code.
158158

159-
Comments increase the overall code footprint, but that's not a problem at all. There are many tools which minify the code before publishing to production server. They remove comments, so they do not appear in the working scripts. So, the comments do not have any negative effects on production at all.
159+
Comments increase the overall code footprint, but that's not a problem at all. There are many tools which minify the code before publishing to production server. They remove comments, so comments do not appear in the working scripts. So, the comments do not have any negative effects on production at all.
160160

161-
Further in the tutorial there will be a chapter <info:coding-style> that also explains how to write better comments.
161+
Further in the tutorial, there will be a chapter <info:coding-style> that also explains how to write better comments.

1-js/05-data-types/02-number/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ A few examples:
396396

397397
```js run
398398
alert( Math.max(3, 5, -10, 0, 1) ); // 5
399-
alert( Math.min(1, 2 ); // 1
399+
alert( Math.min(1, 2) ); // 1
400400
```
401401

402402
`Math.pow(n, power)`

0 commit comments

Comments
 (0)