You are viewing a single thread.
View all comments View context
7 points

I learned today, that in JavaScript

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

[-2,-7,2,6]

permalink
report
parent
reply
4 points

WTF is it casting it to string or something?

permalink
report
parent
reply
4 points

You can bet your pants it does!

permalink
report
parent
reply
7 points

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

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

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 4.3K

    Monthly active users

  • 945

    Posts

  • 10K

    Comments

Community moderators