Sundray@lemmus.org to simpsonsshitposting@sh.itjust.worksEnglish · 27 days agoThe Altman Cometh!lemmus.orgimagemessage-square55fedilinkarrow-up1314file-text
arrow-up1314imageThe Altman Cometh!lemmus.orgSundray@lemmus.org to simpsonsshitposting@sh.itjust.worksEnglish · 27 days agomessage-square55fedilinkfile-text
minus-squareook@discuss.tchncs.delinkfedilinkEnglisharrow-up6·27 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-up2·27 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·26 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) + 3is 15, and"1" + 2 - -3is 15, but"1" + 2 + 3is “123”. 🙄️I’m still not convinced Javascript is a serious language rather than a prank.