Update article.md

This commit is contained in:
CyberMew 2019-12-02 10:21:49 +08:00 committed by GitHub
parent 0fd5806728
commit e62b04a94b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,7 +82,7 @@ alert( Number(false) ); // 0
Please note that `null` and `undefined` behave differently here: `null` becomes zero while `undefined` becomes `NaN`. Please note that `null` and `undefined` behave differently here: `null` becomes zero while `undefined` becomes `NaN`.
````smart header="Addition '+' concatenates strings" ````smart header="Addition '+' concatenates strings"
Almost all mathematical operations convert values to numbers. A notable exception is addition `+` operator. If one of the added values is a string, the other one is also converted to a string. Almost all mathematical operations convert values to numbers. A notable exception is the addition `+` operator. If one of the added values is a string, the other one is also converted to a string.
Then, it concatenates (joins) them: Then, it concatenates (joins) them: