Conditional (Ternary) Operator provided solution is wrong

Tell us what’s happening:

The hint solution provided for the Use the Conditional (Ternary) Operator page does not submit.

The correct solution requires === instead of the provided =

Your code so far

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

checkEqual(1, 2);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0.

Link to the challenge:

You should make a pull request on the Github repository for the curriculum and propose your change to fix it :slight_smile:

1 Like