Sundray@lemmus.org to simpsonsshitposting@sh.itjust.worksEnglish · 8 天前The Altman Cometh!lemmus.orgimagemessage-square55fedilinkarrow-up1314arrow-down13file-text
arrow-up1311arrow-down1imageThe Altman Cometh!lemmus.orgSundray@lemmus.org to simpsonsshitposting@sh.itjust.worksEnglish · 8 天前message-square55fedilinkfile-text
minus-squareook@discuss.tchncs.delinkfedilinkEnglisharrow-up6·8 天前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!
minus-squaree0qdk@reddthat.comlinkfedilinkEnglisharrow-up2·7 天前Almost works in JS. +("1" + 2) + 3 is 15, and "1" + 2 - -3 is 15, but "1" + 2 + 3 is “123”. 🙄️
minus-squareboonhet@sopuli.xyzlinkfedilinkEnglisharrow-up2·7 天前I’m still not convinced Javascript is a serious language rather than a prank.
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.