this post was submitted on 20 Dec 2024
948 points (96.9% liked)

Programmer Humor

32716 readers
350 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 7 points 2 days ago (1 children)

I learned today, that in JavaScript

[2,-2,6,-7].sort()

results in[-2,-7,2,6]

[–] [email protected] 4 points 2 days ago (1 children)

WTF is it casting it to string or something?

[–] [email protected] 4 points 2 days ago (1 children)

You can bet your pants it does!

[–] [email protected] 7 points 2 days ago (1 children)
[–] [email protected] 2 points 2 days ago

This 💩 is 🍌s
baNaNas