Tell us what’s happening:
Your code so far
function checkEqual(a, b) {
return (a = b ? true: false );
}
checkEqual(1, 2);
Tell us what’s happening:
Your code so far
function checkEqual(a, b) {
return (a = b ? true: false );
}
checkEqual(1, 2);
you should use === or == comparison and that too in this form
return(a==b ?true:false);
hope this helps
You are assigning a a value of b, but you should be comparing.