title: How to declare and compare array variable from other selected variable
body: <p>I have </p>
  
  <pre><code>var two = document.getElementById('email').value;
  </code></pre>
  
  <p>and i want to compare some values from an array with the ones from variable two</p>
  
  <pre><code>email = two[gmail.com, yahoo.com]; // how to type this correctly
  </code></pre>
  
  <p>and after compare the email variable with a value inserted by the user and send alert('We don't accept free e-mail) if user had inserted one of the values from the array.</p>
  
  <pre><code>if email = 0 // did not found any of the values listed in email = then return true.
  </code></pre>