Is the code i write rong help me!

Tell us what’s happening:

Your code so far

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

checkEqual(1, 2);

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 9; SM-A105F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Mobile Safari/537.36.

Challenge: Use the Conditional (Ternary) Operator

Link to the challenge:

The function should return either “Equal” or “Not Equal”.

you are returning “NotEqual”, small difference but it is still not the required thing

In order to get the best help on the forum, you need to fill out the “Tell us what’s happening:” portion of the post. Another post with code i write rong in the title does not tell us what you want help with. Learning to communicate coding issues is a critical skill and it helps you be able to discover your own problems.

1 Like