this post was submitted on 07 Oct 2025
306 points (99.0% liked)
simpsonsshitposting
4328 readers
503 users here now
I just think they're neat!
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Easy. You got 1 and 2, which is obviously 12. Then you add 3, because it is a sum, so 15 comes out. Don't forget to like and subscribe!
Almost works in JS.
+("1" + 2) + 3
is 15, and"1" + 2 - -3
is 15, but"1" + 2 + 3
is "123". ๐๏ธI'm still not convinced Javascript is a serious language rather than a prank.