diff --git a/1-js/02-first-steps/06-type-conversions/1-primitive-conversions-questions/task.md b/1-js/02-first-steps/06-type-conversions/1-primitive-conversions-questions/task.md index d2d130c6..83b295f9 100644 --- a/1-js/02-first-steps/06-type-conversions/1-primitive-conversions-questions/task.md +++ b/1-js/02-first-steps/06-type-conversions/1-primitive-conversions-questions/task.md @@ -11,7 +11,7 @@ What are results of these expressions? "" - 1 + 0 true + false 6 / "3" -2" * "3" +"2" * "3" 4 + 5 + "px" "$" + 4 + 5 "4" - 2 diff --git a/1-js/02-first-steps/07-operators/article.md b/1-js/02-first-steps/07-operators/article.md index e2204a24..e679df61 100644 --- a/1-js/02-first-steps/07-operators/article.md +++ b/1-js/02-first-steps/07-operators/article.md @@ -234,7 +234,9 @@ alert( 4 ** (1/2) ); // 2 (power of 1/2 is the same as a square root, that's mat alert( 8 ** (1/3) ); // 2 (power of 1/3 is the same as a cubic root) ``` -## Increment/decrement: ++, -- +## Increment/decrement + + Increasing or decreasing a number by one is among the most common numerical operations. diff --git a/1-js/02-first-steps/08-comparison/article.md b/1-js/02-first-steps/08-comparison/article.md index 68d63dd2..fca656c2 100644 --- a/1-js/02-first-steps/08-comparison/article.md +++ b/1-js/02-first-steps/08-comparison/article.md @@ -180,7 +180,7 @@ The reason is that an equality check `==` and comparisons `> < >= <=` work diffe 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. -### An uncomparable undefined +### An incomparable undefined The value `undefined` shouldn't participate in comparisons at all: diff --git a/1-js/04-object-basics/01-object/article.md b/1-js/04-object-basics/01-object/article.md index 30858607..c5c09a4e 100644 --- a/1-js/04-object-basics/01-object/article.md +++ b/1-js/04-object-basics/01-object/article.md @@ -1,7 +1,7 @@ # Objects -As we know, there are 7 language types in JavaScript. Six of them are called "primitive", because their values contain only a single thing (be it a string or a number or whatever). +As we know from the chapter , there are 7 language types in JavaScript. Six of them are called "primitive", because their values contain only a single thing (be it a string or a number or whatever). In contrast, objects are used to store keyed collections of various data and more complex entities. In JavaScript, objects penetrate almost every aspect of the language. So we must understand them first before going in-depth anywhere else. @@ -573,7 +573,7 @@ user = { }; ``` -...But what if we want to make constant object properties? So that `user.age = 25` would give an error. That's possible too. We'll cover it in the chapter . +...But what if we want to make constant object properties? So that `user.age = 25` would give an error. That's possible too. We'll cover it in the chapter . ## Cloning and merging, Object.assign