Use the Conditional (Ternary) Operator js

Use the Conditional (Ternary) Operator js
0

#1

**Tell us what’s happening:**i donot overcome this.plz help

Your code so far



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

checkEqual(1, -1);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36 OPR/54.0.2952.54.

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


#2

your ternary conditional line is asking:

is a greater than or equal to b ?

but the instructions for this challenge want something different

Use the conditional operator in the checkEqual function to check if two numbers are equal or not.