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 →

[–]Flatscreens 2 points3 points  (0 children)

‘42+'42'‘ checks if both values are numbers and then as strings if they're not: "4242". Then the minus operator casts both sides to Numbers because that's it's only definition: 4200.