Comparison operators and syntax that can be used in javascript?
How to check not equal to, less and greater than condition of numerical values?
Operator-Syntax | Description |
== | validates the condition whether two numbers or string values are equal |
!= | validates the condition whether two numbers or string values are not equal |
> | validates the condition whether one numbers is greater than other |
< | validates the condition whether one numbers is less than other |
>= | compares the numbers and checks whether one numbers is greater than or equal to other |
<= | compares the numbers and checks whether one numbers is less than or equals other |
=== | used to compare and check whether two values are strictly equal |
!== | used to compare and check whether two values are strictly not equal |