Use the Conditional (Ternary) Operator - My code not working

Use the Conditional (Ternary) Operator - My code not working
0

#1

Is there any problem with my code?

Its not working.

Your code so far


function checkEqual(a, b) {
  return a == b ? "true" : "false";
}

checkEqual(1, 2);

Your browser information:

chrome

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/use-the-conditional-ternary-operator


#2

It’s asking you to return true or false, not the strings “true”/“false”


#3

Thank you very much, I sincerely appreciate!