The inequality ( ! = ) Operator is the opposite of the equality ( == ) operator. It means 'Not Equal' and returns True , when equality returns False and vice versa.
Like the == operator, the ! = Operator will convert data types of values while comparing.
Example 1! = '1' will return False because the data type conversion took place and 1 and '1' are considered equal.
The strict inequality ( ! == ) operator is the opposite of the strict equality operator ( === ). It means 'Strictly Not Equal' and returns True when strict equality returns False and vice versa.
Like the === operator, the ! == operator will not convert data types.
Example 1! == '1' will return True because 1 is an integer and '1' is a character and no data type conversion takes place.