Comparison with the Strict Inequality Operator
Summary
- The stritct inequality operator compares two items based on their values, and data type.
Final Code
// Setup
function testStrictNotEqual(val) {
if (val !== 17) { // Change this line
return "Not Equal";
}
return "Equal";
}
testStrictNotEqual(10);