Basic JavaScript: Use the Conditional (Ternary) Operator HELP ME

Hi everyone! :innocent:

Be a little more careful.
The task states that you need to return “Equal” and “Not Equal”.
Therefore, the code will look like this:

function checkEqual(a, b)
return a === b ? “Equal” : “Not Equal” ;
checkEqual(1, 2);

1 Like

iam having the same problem how did you manage to get it right