Comparison with the Inequality Operator help recruiting

Tell us what’s happening:

could someone explain me what is wrong in syntax.

Your code so far


// Setup
function testNotEqual(val) {
  if (val != 99) { return "Equal";
  }
 return "Equal";
}

// Change this value to test
function testNotEqual(bob) {
  if (bob != 12) {  return "Not Equal";
   }
   return "Not Equal";
}

Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/comparison-with-the-inequality-operator

Below the “change this value to test” there should be a function call like testNotEqual(55)

Your issue is that your function is just returning “Not Equal” (only last definition of a function counts), as your return it both if the function argument is 12 and if it is not

The other definition has the same issue, only it is just returning “Equal”

The only thing you need to change is the line with the comment that say so and add the inequality operator inside the if statement condition