title: How to check if the user input exist in an Array?
body: <p>Is there a way to check if an user input from text box (for example) exists in an array that I created and imported from other JS files?</p>
  <p>And can I link all that code to an HTML button?</p>
  <p>In Python to do this I use &quot;in&quot;:</p>
  <pre><code>if a in List: 
      print(&quot;That's In&quot;) 
  </code></pre>
  <p>PS: I know that List in Python are a little different with Arrays in JavaScript.</p>