Help I don't know what to do

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

function checkEqual(a, b) {
return a = b  ? "Not Equal" : "Equal";

checkEqual(1, 2);

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 8.1.0; Lenovo TB-8704X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.210 Safari/537.36

Challenge: Use the Conditional (Ternary) Operator

Link to the challenge:

One equal sign is the assignment operator. What you are doing is assigning b to a. To check if two values are equal, you would put a triple equal sign.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.