Skip to content

Commit 81366db

Browse files
committed
Merge remote-tracking branch 'refs/remotes/iliakan/master'
2 parents 2a17f01 + ef35cf4 commit 81366db

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

1-js/02-first-steps/04-variables/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ And the last note. There are some lazy programmers who, instead of declaring a n
314314
315315
As the result, the variable is like a box where people throw different things without changing the sticker. What is inside it now? Who knows... We need to come closer and check.
316316
317-
Such a programmer saves a little bit on variable declaration, but looses ten times more on debugging the code.
317+
Such a programmer saves a little bit on variable declaration, but loses ten times more on debugging the code.
318318
319319
An extra variable is good, not evil.
320320

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Data types
22

3-
A variable in JavaScript can contain any data. A variable can at one moment be a string and later recieve a numeric value:
3+
A variable in JavaScript can contain any data. A variable can at one moment be a string and later receive a numeric value:
44

55
```js
66
// no error
77
let message = "hello";
88
message = 123456;
99
```
1010

11-
Programming languages that allow such thing are called "dynamically typed", meaning that there are data types, but variables are not bound to any of them.
11+
Programming languages that allow such things are called "dynamically typed", meaning that there are data types, but variables are not bound to any of them.
1212

1313
There are 7 basic data types in JavaScript. Here we'll study the basics, and in next chapters we'll talk about each of them in detail.
1414

1-js/02-first-steps/12-while-for/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ do {
8282
} while (i < 3);
8383
```
8484

85-
This form of syntax is rarely used. Usually, if there's no special reason, the other form is preferred: `while(…) {…}`.
85+
This form of syntax is rarely used except when you want the body of the loop to execute **at least once** regardless of the condition being truthy. Usually, the other form is preferred: `while(…) {…}`.
8686

8787
## The "for" loop
8888

1-js/07-object-oriented-programming/09-class/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class User {
114114
115115
constructor(name) {
116116
// invokes the setter
117-
this.name = name;
117+
this._name = name;
118118
}
119119
120120
*!*

0 commit comments

Comments
 (0)