Comparison operators:
>, >=, <, <=, = =,! =, = = =,! = =,
The result of the comparison operator is a Boolean value
= = compares values only and = = = equals values and data types
1<script>2 varA = 5,b = 10;3Alert (A>B)//=>false4Alert (A>=B)//=>false5Alert (a>=5)//the =>true is equal to or greater than the inside as long as it is satisfied returns True6Alert (A<B)//=>true7Alert (A<=B)//=>true is less than or equal to the inside as long as the same is true8Alert (1==true)//=>true9Alert (0==false)//=>true Comparison of implicit conversions of typesTenAlert (0==NULL)//=>false Onealert (undefined = =NULL)//The value of =>true undefined and true is equal AAlert (nan = = Nan)//=>false Nan is not able to compare itself. -alert (undefined = = =NULL)//=>false undefined and true return false because they have different values for the same data type -</script>
JS expression and operator details (bottom)