Ternary operator it's still an if statement in disguise.
Not exactly, an if statement doesn't evaluate to a value, in other words, it doesn't return anything.
The ternary evaluates to something.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.