Skip to content

Commit cbf8281

Browse files
authored
Merge pull request #212 from Thespawnexe/patch-2
Update Solution.md - Task Typo Fix.
2 parents d39750f + 534c557 commit cbf8281

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 substruction `"-"` (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)