# Comparison with the Strict Inequality Operator (revived)

**URL:** <https://forum.freecodecamp.org/t/comparison-with-the-strict-inequality-operator-revived/146235>\
**Category:** General\
**Created:** [September 6, 2017, 3:26am UTC](https://forum.freecodecamp.org/t/comparison-with-the-strict-inequality-operator-revived/146235 "2017-09-06T03:26:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![KayCodes](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kaycodes/32/61394_2.png) [@KayCodes](https://forum.freecodecamp.org/u/KayCodes)\
**Post date:** [September 6, 2017, 3:26am UTC](https://forum.freecodecamp.org/t/comparison-with-the-strict-inequality-operator-revived/146235/1 "2017-09-06T03:26:58Z")

</div>

**Tell us what’s happening:**

Hi! This seemed simple enough, however I cannot get the first test to pass. Could anyone Please help. I’ve exhausted Read and Search, as all the information I found says to do as I’ve done.

**Your code so far**

```auto
// 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(10);

```

**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.113 Safari/537.36`.

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

---

<div class="post-metadata">

**Author:** ![ryzhuk.oleksandr](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@ryzhuk.oleksandr](https://forum.freecodecamp.org/u/ryzhuk.oleksandr)\
**Post date:** [September 6, 2017, 3:43am UTC](https://forum.freecodecamp.org/t/comparison-with-the-strict-inequality-operator-revived/146235/2 "2017-09-06T03:43:58Z")

</div>

Hi KayCodes,

1. Looks like you have extra ‘;’ after if (val !== 17)
2. When you have more than 1 ‘if’ statement you should use ‘else’

The solution should look like:

```auto
function testNotEqual(val) {
  if (val != 99) { 
    return "Not Equal";
  } else {
    return "Equal";   
  }
}
testNotEqual(12);

```

Please test it and let me know if you run into troubles.

---

<div class="post-metadata">

**Author:** ![KayCodes](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kaycodes/32/61394_2.png) [@KayCodes](https://forum.freecodecamp.org/u/KayCodes)\
**Post date:** [September 6, 2017, 3:46am UTC](https://forum.freecodecamp.org/t/comparison-with-the-strict-inequality-operator-revived/146235/3 "2017-09-06T03:46:44Z")

</div>

Thank you! I tried the next challenge without the " ; " and that seemed to be the problem! I passed without the “else” but will keep that in mind for the future. Its always the little things with coding! Thanks a lot.

---

<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:40pm UTC](https://forum.freecodecamp.org/t/comparison-with-the-strict-inequality-operator-revived/146235/5 "2021-01-17T20:40:25Z")

</div>

Closed on January 17, 2021, 8:40pm UTC


