Logical Operations

The following table lists the logical operators that are used for comparison in JavaScript:

Psuedocode

JavaScript

Equal to

==

Is exactly equal to

 ===

Not equal to

!=

Less than

< 

Greater than

> 

Less than or equal to

<=

Greater than or equal to

>=

You will find that algorithms are written in Psuedocode that is Code Independent, i.e.: NOT specific to any one computer programming language such as JavaScript. This means that algorithms can be used by any programmer.

Next: Example Selection Design