Use the Conditional (Ternary) Operator, should return false

Tell us what’s happening:
From what I can tell, and looking at other “help” my code for this should work. Am I missing something? I even tried cut/paste the solution from the hint and it still gave me errors.

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/73.0.3683.86 Safari/537.36.

This is an assignment operator, what you want is a comparison operator

1 Like

Wow, I feel silly. Thanks for the assist. That worked great.