Tell us what’s happening:
What am I doing wrong? I’ve tried so many different variants and even looked up the answer and it still doesn’t work.
Your code so far
// Setup
function testStrictNotEqual(val) {
if (val !== 17); { // Change this line
return "Not Equal";
}
return "Equal";
}
// Change this value to test
console.log(testStrictNotEqual(17));
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36
.
Challenge: Comparison with the Strict Inequality Operator
Link to the challenge:
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/comparison-with-the-strict-inequality-operator