[Solved] Syntactic sugar JavaScript ( If statement) Error [closed]
I try to use syntactic sugar The conditional operator is not syntactic sugar. It’s a specific operator with a specific purpose, and you’re simply using it incorrectly. It is used for conditionally producing a value as an overall expression, one value if the condition is true and another if it’s false. For example: let x … Read more