Help to complete thi

hi everyboyd Tell us what’s happening:

Your code so far


function checkEqual(a, b) {
  return a === b ? "equal": "not equal";

return a===b;
}

checkEqual(1, 2);
console.log(checkEqual);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36.

Challenge: Use the Conditional (Ternary) Operator

Link to the challenge:

Hi, tell us what’s happening. With what exactly are you having a problem?

[quote=“rizwanali446, post:1, topic:365516”]

function checkEqual(a, b) { return a === b ? “equal”: “not equal”;
return a===b; }
checkEqual(1, 2);
console.log(checkEqual);

its not working properly check the mistake and correcet it

Take a closer look at output your function gives, i.e.:

console.log(checkEqual(1, 2));

and what result is expected in the challenge description.

thanks its done and work efficiently .