You can stash your values inside an array and check whether the variable exists in the array by using [].indexOf:
[].indexOf
if([5, 6].indexOf(x) > -1) { // ... }
If -1 is returned then the variable doesn't exist in the array.
-1
2.1m questions
2.1m answers
60 comments
57.0k users