// Setup
function testStrictNotEqual(val) {
// Only Change Code Below this Line
if (val) {
17 !== 17;
// Only Change Code Above this Line
return "Not Equal";
}
return "Equal";
}
// Change this value to test
testStrictNotEqual(17);
Your browser information:
Your Browser User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36.
I’ve going crazy with this bc i feel it’s so easy and i just can’t figure it out. I don’t know what’s wrong with my code, especially since i’ve tried several ways, like 17 !== ‘17’; 17 !== 17; 17 !== 10; etc.
testStrictNotEqual(17) should return “Equal” <- this has an ‘x’ of wrong
testStrictNotEqual(“17”) should return “Not Equal” <- this says it’s good
testStrictNotEqual(12) should return “Not Equal” <- good
testStrictNotEqual(“bob”) should return “Not Equal” <- good
You should use the !== operator <- wrong
Please help