Saying errors but I'm using the solution : Use the Conditional (Ternary) Operator

Tell us what’s happening:
// running tests

checkEqual(1, 2) should return false

checkEqual(1, -1) should return false

// tests completed

Your code so far

function checkEqual(a, b) {
  return (a = b ? true : false);

checkEqual(1, 2);

Your browser information:

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

Link to the challenge:

You are using an assignment operator =, you should be using a comparison operator (== or ===)

1 Like

Got stuck on the same thing for nearly a day now!