Comparison and Logical Operators - 02

We sometimes need different operators to compare values when writing a conditional statement.

Here is a list of some handy comparison operators and their syntax:

  • Less than: <
  • Greater than: >
  • Less than or equal to <=
  • Greater than or equal to >=
  • Is equal to: ===
  • Is NOT equal to: !==

Comparison operators compare the value on the left with the value on the right.

All comparison statements evaluate as either true or false.


identity operator (===) checks the value as well as type.



Logical Operator:

Follow the link to read about this


Post a Comment

Previous Post Next Post