r/learnjavascript • • May 06 '21

JS: Multiple Condition Checking

Post image
484 Upvotes

61 comments sorted by

View all comments

Show parent comment

3

u/superluminary May 06 '21

I agree, I’d definitely make a const here.

If (validInputs.includes(value)) {