Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (10 sloc) 447 Bytes

Challenge: Comparison with the Inequality Operator

The inequality operator (!=) is the opposite of the equality operator. It means "Not Equal" and returns false where equality would return true and vice versa. Like the equality operator, the inequality operator will convert data types of values while comparing.

Examples

1 != 2      // true
1 != "1"    // false
1 != '1'    // false
1 != true   // false
0 != false  // false
Something went wrong with that request. Please try again.