Merge pull request #2495 from joaquinelio/info

needed 4 translated repos
This commit is contained in:
Ilya Kantor 2021-03-13 01:23:34 +03:00 committed by GitHub
commit e6bf25f6b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

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

View file

@ -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.
## 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.

View file

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

View file

@ -125,7 +125,7 @@ That is the same as a direct assignment to `Article`:
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.