Basic JavaScript: Comparison with the Strict Inequality Operator

function testStrictNotEqual(val) {
// Only Change Code Below this Line
// Add the strict inequality operator to the if statement so the function will return "Not Equal" when val is not strictly equal to 17
if (val!==17) {
return "Not Equal";
}
return "Equal";
}

// Change this value to test
testStrictNotEqual(10);

Leave a Reply

Your email address will not be published. Required fields are marked *