How to Compare With Greater Than, Less Than, Equal To, and Not Equal To Operators in JavaScript (Easy!)

I’ve stated this before, and I’ll say it again. Uppercase letters are less than lowercase letters. JavaScript reads from left to right. The size of the letters gets bigger from “a” to “z.” But here’s something interesting. It turns out that capitalization takes precedence over the actual order of the alphabet! So if you’re comparing … Read more

How to Compare Strings Using the Greater Than and Less Than Comparison Operators in JavaScript (Easy!)

Okay, so far we’ve only compared numbers, but what about the letters of the alphabet? Comparing strings in a word is very similar to how you would compare letters in the alphabet, but with a few differences. How are letters of the alphabet prioritized in JavaScript when compared? Uppercase letters are always less than lowercase … Read more

How to Use the Greater Than and Less Than Comparison Operators in JavaScript (With Examples!)

Boolean type values only have two results: true or false. The words true and false are actual keyword values here. Comparing Boolean values with the “less than” or “greater than” operator The > operator means “greater than” and the < operator means “less than.” These are binary operators and thus require two values. One on … Read more