Created: 2023-01-15 12:55
Status: #concept
Subject: Programming
Tags: C JavaScript Operator
Boolean Operators
They are Operators we can use on Operands to make a Boolean Expression that evaluates to True or False.
>
or>=
Read as "greater than" or "greater than or equal to", respectively.<
or<=
Read as "lesser than" or "lesser than or equal to", respectively.!
Read as "NOT" and negates the following Boolean Expression.==
or!=
Read as "equal to" or "NOT equal to", respectively.===
or!==
The Strict Equality Operator in JavaScript, see boolean (JavaScript) for more info.
The Boolean values of these expressions can be used as operands with Boolean Operators.
String Comparison
In JavaScript and Python, when string (JavaScript) operands are compared, the Interpreter will use "dictionary" or "lexicographical" order based on the ASCII table.
alert( 'Z' > 'A' ); // true
alert( 'Glow' > 'Glee' ); // true
alert( 'Bee' > 'Be' ); // true
See String Comparison Algorithm for more info.