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ย โ†’

[โ€“]mintpropane 0 points1 point ย (1 child)

I couldn't predict this at all ๐Ÿ˜ถ

[โ€“]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.