aburtang@lemmy.world to Programmer Humor@lemmy.ml · 3 days agoEvil Oneslemmy.worldimagemessage-square75fedilinkarrow-up1983arrow-down131
arrow-up1952arrow-down1imageEvil Oneslemmy.worldaburtang@lemmy.world to Programmer Humor@lemmy.ml · 3 days agomessage-square75fedilink
minus-squareBlack616Angellinkfedilinkarrow-up8arrow-down1·3 days agoI learned today, that in JavaScript [2,-2,6,-7].sort() results in [-2,-7,2,6]
minus-squarezqwzzle@lemmy.calinkfedilinkEnglisharrow-up4·3 days agoWTF is it casting it to string or something?
I learned today, that in JavaScript
[2,-2,6,-7].sort()
results in
[-2,-7,2,6]
WTF is it casting it to string or something?
You can bet your pants it does!
This 💩 is 🍌s
baNaNas