5 ms·
> What's an example of a language that, when adding two strings/chars, parses them as integers first? The cancerous piece of shit we know as Javascript.
by _pmf_ 12y ago
> What's an example of a language that, when adding two strings/chars, parses them as integers first?
The cancerous piece of shit we know as Javascript.
- croddin 12y agoNo, Javascript will concatenate two strings that contain integers if you add them. "1"+"1" //=> "11"
- notduncansmith 12y agoAs 'croddin pointed out, this is flat-out wrong - and that attitude is hardly conducive to a constructive discussion.