The code editor won't submit some of my code , is the code editor at fault?

Tell us what’s happening:
Ok so i am using the ternary operator “?” and for some reason after i wrote it out the first time, it wouldn’t submit so i compared notes with the “Hints” section and it was the same. i even copied and pasted it in the FreeCodeCamp editor and its still producing errors and wont submit - any thing l need to change below or is it the editor simply at fault?

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 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/use-the-conditional-ternary-operator

Remember the difference between the equality operator and the assignment operator.

Gotcha was thinking that as well, first time i had used (===) and it had given me an error so figure when l changed “True” to “true” and left “=” - it worked thanks a lot!