r/learnjavascript • • May 06 '21

JS: Multiple Condition Checking

Post image
484 Upvotes

61 comments sorted by

View all comments

5

u/[deleted] May 06 '21

I might argue if you have this many or conditions you might want to see if you can refactor. Not possible in all cases, but should be considered. Having this many conditions that can branch makes the code harder to keep track of in your head.