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