title: javascript function inArray
body: <p>I need a javascript function that can take in a string and an array, and return true if that string is in the array..</p>
  
  <pre><code> function inArray(str, arr){
     ...
   }
  </code></pre>
  
  <p>caveat: it can't use any javascript frameworks.</p>