Never use ternary operators to replace more than a single if...else. Otherwise, it quickly becomes unreadable and error-prone. The example from your post is an excellent proof of this :'D
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Never use ternary operators to replace more than a single
if...else
. Otherwise, it quickly becomes unreadable and error-prone. The example from your post is an excellent proof of this :'D