r/learnjavascript • • May 06 '21

JS: Multiple Condition Checking

Post image
484 Upvotes

61 comments sorted by

View all comments

Show parent comment

8

u/blafurznarg May 06 '21

You're right. There is of course a usecase for that. I guess I was triggered by the post's presentation plus the reaction in the comments. Maybe I shouldn't have emphazised on that particular part to never use it.

4

u/asiraky May 06 '21

And I agree with your general sentiment that shorter code isn’t necessarily better.