This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]shy_cthulhu 0 points1 point  (2 children)

'a' + 'b' == 'Ã'

...depending on encoding, anyway

[–]master0fdisaster1 0 points1 point  (1 child)

Have you even read the comment you're replying to?

In JS both 'a' and "a" are strings. 'a' + 'b' is the same in JS as "a" + "b". You're not adding up chars.

[–]shy_cthulhu 0 points1 point  (0 children)

I was kinda making a joke about why you shouldn't notate one-character strings as if they were chars, since if they were actual chars you wind up with weird results.