Comparison with the Strict Inequality Operator

The strict inequality operator (!==) is the opposite of the strict equality operator. It means "Strictly Not Equal" and returns false where strict equality would return true and vice versa. Strict inequality will not convert data types.


3 !== 3 // false
3 !== '3' // true
4 !== 3 // true


Add the strict inequality operator to the if statement so the function will return "Not Equal" when val is not strictly equal to 17