Sundray to simpsonsshitposting@sh.itjust.worksEnglish · 2 months agoThe Altman Cometh!imagemessage-square54linkfedilinkarrow-up1314arrow-down13file-text
arrow-up1311arrow-down1imageThe Altman Cometh!Sundray to simpsonsshitposting@sh.itjust.worksEnglish · 2 months agomessage-square54linkfedilinkfile-text
minus-squareook@discuss.tchncs.delinkfedilinkEnglisharrow-up6·2 months 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.comcakelinkfedilinkEnglisharrow-up2·2 months 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 months 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.