Tagged “ecmascript”
-
TIL JS Coercion javascript edge-cases ecmascript
In JavaScript, the + operator is used for both numeric addition and string concatenation. When you 'add' a number to a string the interpreter converts your number to a string and concatenates both together.
See all tags.