mudkip@lemdro.id to memes@lemmy.worldEnglish · 2 days ago123 + 456 = 123456files.catbox.moeimagemessage-square43linkfedilinkarrow-up1233arrow-down160
arrow-up1173arrow-down1image123 + 456 = 123456files.catbox.moemudkip@lemdro.id to memes@lemmy.worldEnglish · 2 days agomessage-square43linkfedilink
minus-squareslazer2au@lemmy.worldlinkfedilinkEnglisharrow-up149·2 days agoJS devs are like yep, that’s clearly concatenation of 2 strings.
minus-squareTomMasz@piefed.sociallinkfedilinkEnglisharrow-up6·1 day agoCame here for JavaScript mention, was not disappointed.
minus-squarezxqwas@lemmy.worldlinkfedilinkarrow-up32arrow-down1·2 days agoBut for some reason 456 + 123 = Null.
minus-squareLucy :3@feddit.orglinkfedilinkarrow-up9·2 days agoI mean everyone looking at that equation should think that
minus-squareslazer2au@lemmy.worldlinkfedilinkEnglisharrow-up4·2 days agoCompared to a type safe language where it would be an equation rather then concatenation.
minus-squaremacniel@feddit.orglinkfedilinkarrow-up8·2 days agoOnly when the first statement is a string already would that result in a string concat.
minus-squareZiglin (it/they)@lemmy.worldlinkfedilinkEnglisharrow-up1·1 day agoThey are implied to both being strings. As such the first one already is a string. Neither is marked as such in a standard way though.
JS devs are like yep, that’s clearly concatenation of 2 strings.
Came here for JavaScript mention, was not disappointed.
But for some reason 456 + 123 = Null.
Wat
Mathematicians too
Gardeners too
I mean everyone looking at that equation should think that
Compared to a type safe language where it would be an equation rather then concatenation.
Only when the first statement is a string already would that result in a string concat.
They are implied to both being strings. As such the first one already is a string. Neither is marked as such in a standard way though.