Horje
What are Comparison Operators in JavaScript ?

Comparison operators in JavaScript are used to compare two values and return a boolean result (true or false).

They include operators such as ==, ===, !=, !==, >, <, >=, and <=.

Example: Here, the > (greater than) the operator compares the values of a and b. Since a is not greater than b, the expression a > b evaluates to false, which is then logged to the console.

Javascript

let a = 5;
let b = 10;
 
console.log(a > b); // Output: false

Output

false



Reffered: https://www.geeksforgeeks.org


JavaScript

Related
Difference between Function Declarations &amp; Function Expressions in JavaScript Difference between Function Declarations &amp; Function Expressions in JavaScript
What is the use of the return Keyword in JavaScript Functions ? What is the use of the return Keyword in JavaScript Functions ?
What is the use of the Object.is() method in JavaScript ? What is the use of the Object.is() method in JavaScript ?
What is Event Capturing ? What is Event Capturing ?
How to use if statement in JavaScript ? How to use if statement in JavaScript ?

Type:
Geek
Category:
Coding
Sub Category:
Tutorial
Uploaded by:
Admin
Views:
12