#tutorial
Read more stories on Hashnode
Articles with this tag
The ternary operator is simply a shorthand for an if...else statement. It is used very liberally by JavaScript developers (and developers of other...