Basic JavaScript: Use the Conditional (Ternary) Operator questiion

Tell us what’s happening:
Can somebody tell me what I have done wrong?

Your code so far


function checkEqual(a, b) {
return a === b ? "Equal" : "Not Equal"
}

checkEqual(1, 2);

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 9; LM-X420) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Mobile Safari/537.36.

Challenge: Use the Conditional (Ternary) Operator

Link to the challenge:

What do the failing tests say? It looks close to me.

Your code is passing for me. It might be a browser, or device, issue.

Try it with a semi colon “;” at the end of the return.

This code passes for me as well.