Update article.md

Minor correction regarding condition for strings to numbers type conversion.
This commit is contained in:
Habeeb Shopeju 2018-11-14 08:56:38 +01:00 committed by GitHub
parent 991ca66d70
commit 8441c001b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,7 +91,7 @@ alert( 1 + '2' ); // '12' (string to the right)
alert( '1' + 2 ); // '12' (string to the left) alert( '1' + 2 ); // '12' (string to the left)
``` ```
That only happens when one of the arguments is a string. Otherwise, values are converted to numbers. That only happens when at least one of the arguments is a string. Otherwise, values are converted to numbers.
```` ````
## ToBoolean ## ToBoolean