Comparison with the Strict Inequality Operator

Comparison with the Strict Inequality Operator
0

#1

Tell us what’s happening:

Having trouble getting it to show up as equal 17. What am I doing wrong? Thank you.

Your code so far

// 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
testStrictNotEqual(18);

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36.

Link to the challenge:


#2

You have a stray ;.


#3

Thank you so much for your help!


#4

What does this mean?