We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c693192 commit fb5c7b6Copy full SHA for fb5c7b6
1-js/02-first-steps/06-type-conversions/1-primitive-conversions-questions/solution.md
@@ -17,6 +17,6 @@ undefined + 1 = NaN // (4)
17
```
18
19
1. The addition with a string `"" + 1` converts `1` to a string: `"" + 1 = "1"`, and then we have `"1" + 0`, the same rule is applied.
20
-2. The subtraction `"-"` (like most math operations) only works with numbers, it converts an empty string `""` to `0`.
+2. The subtraction `-` (like most math operations) only works with numbers, it converts an empty string `""` to `0`.
21
3. `null` becomes `0` after the numeric conversion.
22
4. `undefined` becomes `NaN` after the numeric conversion.
0 commit comments