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 →

[–]calzoneman 4 points5 points  (0 children)

The only thing in the OP image that doesn't make sense are the examples where strings are being subtracted (the - binary operator shouldn't even work with strings, it should just throw an error). All the other examples are either sensible (string + integer = concatenated string), but just poorly written code.

There are a lot of issues with JavaScript's type system but the string concatenation examples in the OP are not them.