Triple equals vs. double equals equality operator

Tell us what’s happening:

I think the triple equals equality operator should be allowed here.

Your code so far

// Setup
function testEqual(val) {
if (val === 12) { // Change this line
  return "Equal";
return "Not Equal";

// Change this value to test

Your browser information:

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0.

Challenge: Comparison with the Equality Operator

Link to the challenge:

Since === is used to compare two values with their types so you can’t use === in this challenge because 12 and "12" both values should return equals.

1 Like

how would this be satisfied if you used ===?

testEqual("12") should return “Equal”

the point of the challenge is to use ==