Basic JavaScript: Use the Conditional (Ternary) Operator

What’s wrong here? I’m a bit perplexed…

1 Like

try to share the code instead of screenshot.

First = means assignment, not equality. user == or ===

I think "false" and "true" should be false and true, try it.

1 Like