Sleepless One@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 3 days agoThe JavaScript type coercion algorithmlemmy.mlimagemessage-square44fedilinkarrow-up1122arrow-down12file-text
arrow-up1120arrow-down1imageThe JavaScript type coercion algorithmlemmy.mlSleepless One@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 3 days agomessage-square44fedilinkfile-text
minus-squareMidnitte@beehaw.orglinkfedilinkEnglisharrow-up8arrow-down1·edit-23 days ago3 - 1 // -> 2 3 + 1 // -> 4 '3' - 1 // -> 2 '3' + 1 // -> '31'
3 - 1 // -> 2
3 + 1 // -> 4
'3' - 1 // -> 2
'3' + 1 // -> '31'