title: How to find if x equals any value in an array in javascript
body: <p>I currently have an if statement like this:</p>
  
  <pre><code>if (x==a||x==b||x==c||x==d||x==e) {
     alert('Hello World!')
  };
  </code></pre>
  
  <p>How can I instead test if <code>x</code> equals any value in an array such as <code>[a,b,c,d,e]</code>?</p>
  
  <p>Thank you!</p>