Changes

JavaScript Operators

1 byte removed, 13:25, 5 June 2007
Comparison Operators
As the name suggests JavaScript ''Comparison Operators'' allow you to construct an expression that compares two values and, given the type of comparison specified, returns a ''true'' or ''false'' value. For example, if you construct a comparison expression to test if two values are identical the result will be ''true'' if they are the same and ''false'' if they are different. Comparison operators are most often used in decision making during a script using the ''if'' statement which is covered in more detail in [[JavaScript Flow Control and Looping]].
The comparison operators available in JavaScript, toghether together with examples, are outlined in the following table:
<table border="1" cellspacing="0">
5
edits