memesearch
JavaScript Equality Comparison Table

JavaScript Equality Comparison Table

Download Find similar pictures
Text on the meme
true false 1 0 -1 "true" "false" "1" "0" "-1" "" null undefined Infinity -Infinity [] {} [[]] [0] [1] NaN true false 1 0 -1 "true" "false" "1" "0" "-1" "" null undefined Infinity -Infinity [] {} [[]] [0] [1] NaN Not Equal Loose equality often gives false positives like "1" is true; [] is "0" Strict equality
What it means

A JavaScript comparison table shows how loose and strict equality behave across booleans, numbers, strings, nullish values, arrays, objects and NaN. The joke is the bewildering pattern of coercion results, especially that values which look unrelated can compare as equal with loose equality. It is commonly sent as a reaction to confusing JavaScript behavior or as programmer humor.

Objects
Tags
Source
Type
image
Size
800×630 · 101.6 KiB
Mood
confused, absurd
Language
en
Added

Similar memes