aburtang@lemmy.world to Programmer Humor@lemmy.ml · 6 days agoEvil Oneslemmy.worldimagemessage-square76fedilinkarrow-up11Karrow-down131
arrow-up1969arrow-down1imageEvil Oneslemmy.worldaburtang@lemmy.world to Programmer Humor@lemmy.ml · 6 days agomessage-square76fedilink
minus-squareBlack616Angel@discuss.tchncs.delinkfedilinkarrow-up8arrow-down1·5 days agoI learned today, that in JavaScript [2,-2,6,-7].sort() results in [-2,-7,2,6]
minus-squarezqwzzle@lemmy.calinkfedilinkEnglisharrow-up4·5 days agoWTF is it casting it to string or something?
minus-squareBlack616Angel@discuss.tchncs.delinkfedilinkarrow-up4·5 days agoYou can bet your pants it does!
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