Need some help with JavaScript

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

   **Your code so far**

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

function checkEqual(1, 2){
return 1 = 2 ? "Equal" : "Not equal";
}
   **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36

Challenge: Use the Conditional (Ternary) Operator

Link to the challenge:

Hi @khoifunix !

Welcome to the forum!

Two issues.

No.1:
Delete this

No.2:
Check your capitalization here

Reread the directions more carefully to get the correct output.

When I fix those two things then the test passes
Hope that helps!

1 Like

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