Skip to content

Commit fb5c7b6

Browse files
authored
Minus operation instead of minus sign
1 parent c693192 commit fb5c7b6

File tree

1 file changed

+1
-1
lines changed
  • 1-js/02-first-steps/06-type-conversions/1-primitive-conversions-questions

1 file changed

+1
-1
lines changed

1-js/02-first-steps/06-type-conversions/1-primitive-conversions-questions/solution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ undefined + 1 = NaN // (4)
1717
```
1818

1919
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`.
20+
2. The subtraction `-` (like most math operations) only works with numbers, it converts an empty string `""` to `0`.
2121
3. `null` becomes `0` after the numeric conversion.
2222
4. `undefined` becomes `NaN` after the numeric conversion.

0 commit comments

Comments
 (0)