memesearch
JavaScript Sort Betrayal

JavaScript Sort Betrayal

Download Find similar pictures
Text on the meme
People learning JavaScript: "I'll use array.sort() to sort this list of numbers!" JavaScript: [1, 10000, 21, 30, 4]
What it means

A JavaScript learner confidently plans to use array.sort() on a list of numbers, while Leonardo DiCaprio reacts in horror as JavaScript produces an unexpectedly unsorted-looking result. The joke references JavaScript's default lexicographic sorting behavior, where numbers are compared like strings. It is used as a reaction to surprising programming bugs or unintuitive language behavior.

Who
Objects
Tags
Source
Template
Leonardo DiCaprio laughing reaction
Type
image
Size
597×800 · 81.5 KiB
Mood
sarcastic, confused
Language
en
Added