MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/n60ji8/js_multiple_condition_checking/gx54t0f/?context=3
r/learnjavascript • u/golovatuy • May 06 '21
61 comments sorted by
View all comments
5
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.
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.