JAVASCRIPT Tutorial
Comparison operators are used to compare the values of two operands. They return a Boolean value (true or false) based on the result of the comparison.
// Equality
console.log(1 == 1); // true
console.log('1' == 1); // true
// Inequality
console.log(1 != 2); // true
console.log('1' !== 1); // true
// Greater Than
console.log(2 > 1); // true
// Less Than
console.log(1 < 2); // true
// Greater Than or Equal To
console.log(2 >= 2); // true
// Less Than or Equal To
console.log(1 <= 2); // true