Sleepless One@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 1 year agoThe JavaScript type coercion algorithmlemmy.mlimagemessage-square45linkfedilinkarrow-up1126file-textcross-posted to: [email protected]
arrow-up1126imageThe JavaScript type coercion algorithmlemmy.mlSleepless One@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 1 year agomessage-square45linkfedilinkfile-textcross-posted to: [email protected]
minus-squareMidnitte@beehaw.orglinkfedilinkEnglisharrow-up8·1 year ago3 - 1 // -> 2 3 + 1 // -> 4 '3' - 1 // -> 2 '3' + 1 // -> '31'
3 - 1 // -> 23 + 1 // -> 4'3' - 1 // -> 2'3' + 1 // -> '31'