Skip to content

Illustrated.dev

Toggle Nav
ExplainersSketchesAbout

A Fruitful Guide to JavaScript's Comparison Operators

Javascript's comparison operators give us a way of comparing values

Equality comes in loose and strict varieties. You should always use strict equality.

Inequality follows the same loose and strict rules as equality

Relational equality let's us check which value is greater