Bugged?! - Use the Conditional (Ternary) Operator

Tell us what’s happening:

Hello everyone!

I’m stuck on this rather simple excercise. No matter what I put in, I always fail the assignment. I even tried copying the official solution, but to no avail.

Is this a bug?

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

Link to the challenge:

You have to check if they are equal, not assign b to a.