Comparison with the Strict Equality Operator

Comparison with the Strict Equality Operator
0

#1

Tell us what’s happening:
Are you supposed to remove the (val) and replace it with the 7 === 7? If so how does it find the val?

Your code so far

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

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

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8.

Link to the challenge:


#2

I figured it out. :slight_smile: