Compare
by Ryan Perez
HTML
1. The function testStrictNotEqual(val) is defined.
2. The function is called with the argument 10.
3. The function checks if the value of val is not equal to 17.
4. The function returns "Not Equal" because the value of val is not equal to 17.
5. The function returns "Equal" because the value of val is equal to 17.
JavaScript
// Setup
function testStrictNotEqual (val){
//Only Change Code Below this Line
if (val !== 17){
// Only Change Code Above this Line
return "Not Equal";
}
return "Equal";
}
// Change this value to test
console.log(testStrictNotEqual (17));