Preferring If Statements over Ternary Operators In Javascript - I Like Kill Nerds

added by JavaScript Kicks
1/13/2020 9:05:32 AM

284 Views

Every so often thought-pieces will go around proclaiming that you are writing code the wrong way and that you should be writing your code this way instead. One such opinion I have seen (and will not link because this isn't a takedown) is recommending the use of Ternary Operators in Javascript over if statements.


0 comments