Sundray@lemmus.org to simpsonsshitposting@sh.itjust.worksEnglish · 2 days agoThe Altman Cometh!lemmus.orgimagemessage-square55fedilinkarrow-up1308file-text
arrow-up1308imageThe Altman Cometh!lemmus.orgSundray@lemmus.org to simpsonsshitposting@sh.itjust.worksEnglish · 2 days agomessage-square55fedilinkfile-text
minus-squareook@discuss.tchncs.delinkfedilinkEnglisharrow-up6·2 days agoEasy. 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-up1·2 days agoAlmost 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·2 days agoI’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.