Help with Comparison with the Strict Equality Operator

Help with Comparison with the Strict Equality Operator
0.0 0

#1

I’ve passed all of the tests when I run this code except for the final test to use the strict equality operator. (===). This is basically the exact same task as the previous lesson with a slightly different operator, and this structure worked perfectly then. Am I missing something simple?

My code so far

// Setup
function testStrict(testStrict) {
  if (testStrict === 7) { 
    return "Equal";
  }
  return "Not Equal";
}

// Change this value to test
testStrict(7);

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36.

Link to the challenge:


#2

The original code used val as the parameter name. Change the testStrict inside the function to val in both places.