JavaScript » Comparison » !=

This is the not equal operator which returns a Boolean true if both the operands are not equal.

Javascript attempts to convert different data types to the same type before making the comparison.

Examples

Code:
a != b
a != 4
a != "2"
Explanation:

These examples return a Boolean true.