DEV Community

Discussion on: If/else or just if?

Collapse
 
likhitapatra profile image
Likhita

I either user Ternary operator or the statement A type of syntax. But after reading this thread definitely will stick to statement B or ternary operator depending on the situation.