Use the Conditional (Ternary) Operator statement

Tell us what’s happening:
I can’t get this conditional statement correct with ```
return a = b ? “true” : “false” ; nor with return ( a = b ? “true” : “false”);

Where is my error here, please.



**Your code so far**

```js

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/70.0.3538.102 Safari/537.36 OPR/57.0.3098.106.

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

you are using the assignment operator instead of one of the equality operators.

In addition to what @RadoIIvanov said, note that "true" and "false" are not the same as true and false.

I think I get it. Thank you.

That’s it. Thanks for the clue. Boda Assignment vs equality.