This site runs best with JavaScript enabled.

A Fruitful Guide to JavaScript's Comparison Operators

Last tended on February 14, 2019
🌱 Evergreen

One small apple being compared to a large pile of apples

Comparing values is one of those essential developer skills that helps you write conditionals, if / then statements, filters, and plenty more. Here's the apples and oranges guide to using them in JavaScript.

Javascript's comparison operators give us a way of comparing valuesEquality comes in loose and strict varieties. You should always use strict equality.Inequality follows the same loose and strict rules as equalityRelational equality let's us check which value is greater

Want more illustrated notes on web development?

Take a look at JavaScript Bits You Skipped the First Time Around, JSX is a Lovechild or JavaScript's ...spread Operator

Want to share?

Join the newsletter

For weekly notes on visual thinking, ethical technology, and cultural anthropology.

Maggie Appleton © 2020