HOLLA TECH - LEARN

Comparison Operators
 

Comparison operators are used in logical statements to determine equality or difference between variables or values. They return true or false.

The equal to (==) operator checks whether the operands’ values are equal. 

var num = 10;
// num == 8 will return false 

 

NOTE!
You can use multiple assignment operators in one line, such as x -= y += 9.

Comparison Operators
 

The table below explains the comparison operators.

Holla Tech - Learn JavaScript

NOTE!
When using operators, be sure that the arguments are of the same data type; numbers should be compared with numbers, strings with strings, and so on.

BACK NEXT

 

CLICK ON THE BUTTON BELOW TO GO TO THE JAVASCRIPT MAIN COURSE PAGE. 

JAVASCRIPT MAIN COURSE PAGE

 


© License: All Rights Reserved 


CONTACT HOLLA TECH – LEARN SUPPORT