Tell us what’s happening:
I cant seem to pass this test, i checked the hint and have the correct answer but still wont pass. Thoughts?
Your code so far
return (a = b ? true : false );
function checkEqual(a, b) {
return (a = b ? true : false );
}
checkEqual(1, 2);
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) 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