Tell us what’s happening:
I stuck in this subject(Use the Conditional (Ternary) Operator) because I do not know if I 've done wrong code .
please help me
Your code so far
function checkEqual(a, b) {
var x= (a === b )? " Equal" : " Not Equal";
return x;
}
var x1 = checkEqual(1, 2);
console.log(x1);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18362.