title: Returns true if it is a vowel, false otherwise
body: <p>Below is my code for finding out if a character is a vowel or not. But when I run it, it doesn't print out true or false. </p>
  
  <p>Can someone please help me to see what I am doing wrong? </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var vowel = function(str) {
    var matches = str.match(/[aeiou]/gi);
    var count = matches ? matches.length : 0;
  
    document.getElementByID('p').innerHTML = "'" + str + "contains" + count + "vowel(s)";
  
    return false;
  }
  
  vowel(str);</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;form&gt;
    &lt;input type="text" name='t1'&gt;
    &lt;input type='submit' value="SUBMIT" onclick='return vowel(this.form.t1.v'&gt;
    &lt;div id="p"&gt;&lt;/div&gt;
  &lt;/form&gt;</code></pre>
  </div>
  </div>
  </p>