# Comparison with the Strict Equality Operators

**URL:** <https://forum.freecodecamp.org/t/comparison-with-the-strict-equality-operators/170911>\
**Category:** General\
**Created:** [January 25, 2018, 7:57pm UTC](https://forum.freecodecamp.org/t/comparison-with-the-strict-equality-operators/170911 "2018-01-25T19:57:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dstewart4700](https://avatars.discourse-cdn.com/v4/letter/d/b38774/32.png) [@dstewart4700](https://forum.freecodecamp.org/u/dstewart4700)\
**Post date:** [January 25, 2018, 7:57pm UTC](https://forum.freecodecamp.org/t/comparison-with-the-strict-equality-operators/170911/1 "2018-01-25T19:57:07Z")

</div>

**Tell us what’s happening:**

**Your code so far**

```auto
// Setup
function testStrict(myVal) {
  if (myVal === 7) if (myVal == "7") { // Change this line
    return "Equal";
  }
  return "Not Equal";
}

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

```

**Your browser information:**

Your Browser User Agent is: `Mozilla/5.0 (X11; CrOS x86_64 10032.86.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.140 Safari/537.36`.

**Link to the challenge:**  
[https://www.freecodecamp.org/challenges/comparison-with-the-strict-equality-operator](https://www.freecodecamp.org/challenges/comparison-with-the-strict-equality-operator)

---

<div class="post-metadata">

**Author:** ![dstewart4700](https://avatars.discourse-cdn.com/v4/letter/d/b38774/32.png) [@dstewart4700](https://forum.freecodecamp.org/u/dstewart4700)\
**Post date:** [January 25, 2018, 7:57pm UTC](https://forum.freecodecamp.org/t/comparison-with-the-strict-equality-operators/170911/2 "2018-01-25T19:57:46Z")

</div>

What is wrong with this?

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 8:28pm UTC](https://forum.freecodecamp.org/t/comparison-with-the-strict-equality-operators/170911/4 "2021-01-17T20:28:42Z")

</div>


