Tell us what’s happening:
The result is correct by codes what i input but it doesn’t let me pass the test, what should i change?
Your code so far
function checkEqual(a, b) {
return a==b ? "true" : "false";
}
console.log(checkEqual(1, -1));
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/use-the-conditional-ternary-operator