needed 4 translated repos
This commit is contained in:
parent
7533c719fb
commit
0d52720bc0
4 changed files with 4 additions and 4 deletions
|
@ -64,7 +64,7 @@ if (hour < 10 || hour > 18 || isWeekend) {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## OR "||" finds the first truthy value
|
## OR "||" finds the first truthy value [#or-finds-the-first-truthy-value]
|
||||||
|
|
||||||
The logic described above is somewhat classical. Now, let's bring in the "extra" features of JavaScript.
|
The logic described above is somewhat classical. Now, let's bring in the "extra" features of JavaScript.
|
||||||
|
|
||||||
|
|
|
@ -100,7 +100,7 @@ alert( a == b ); // false
|
||||||
|
|
||||||
For comparisons like `obj1 > obj2` or for a comparison against a primitive `obj == 5`, objects are converted to primitives. We'll study how object conversions work very soon, but to tell the truth, such comparisons are needed very rarely -- usually they appear as a result of a programming mistake.
|
For comparisons like `obj1 > obj2` or for a comparison against a primitive `obj == 5`, objects are converted to primitives. We'll study how object conversions work very soon, but to tell the truth, such comparisons are needed very rarely -- usually they appear as a result of a programming mistake.
|
||||||
|
|
||||||
## Cloning and merging, Object.assign
|
## Cloning and merging, Object.assign [#cloning-and-merging-object-assign]
|
||||||
|
|
||||||
So, copying an object variable creates one more reference to the same object.
|
So, copying an object variable creates one more reference to the same object.
|
||||||
|
|
||||||
|
|
|
@ -528,7 +528,7 @@ The characters are compared by their numeric code. The greater code means that t
|
||||||
- All lowercase letters go after uppercase letters because their codes are greater.
|
- All lowercase letters go after uppercase letters because their codes are greater.
|
||||||
- Some letters like `Ö` stand apart from the main alphabet. Here, it's code is greater than anything from `a` to `z`.
|
- Some letters like `Ö` stand apart from the main alphabet. Here, it's code is greater than anything from `a` to `z`.
|
||||||
|
|
||||||
### Correct comparisons
|
### Correct comparisons [#correct-comparisons]
|
||||||
|
|
||||||
The "right" algorithm to do string comparisons is more complex than it may seem, because alphabets are different for different languages.
|
The "right" algorithm to do string comparisons is more complex than it may seem, because alphabets are different for different languages.
|
||||||
|
|
||||||
|
|
|
@ -125,7 +125,7 @@ That is the same as a direct assignment to `Article`:
|
||||||
Article.publisher = "Ilya Kantor";
|
Article.publisher = "Ilya Kantor";
|
||||||
```
|
```
|
||||||
|
|
||||||
## Inheritance of static properties and methods
|
## Inheritance of static properties and methods [#statics-and-inheritance]
|
||||||
|
|
||||||
Static properties and methods are inherited.
|
Static properties and methods are inherited.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue