Basic JavaScript: Use the Conditional (Ternary) Operator

Basic JavaScript: Use the Conditional (Ternary) Operator
0

#1

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


#2

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.