function that returns number of vowels in a string : <pre><code>if(string[i] === "a" || string[i] === "e" || string[i] === "i" || string[i] === "o" || string[i] ==="u"){}
</code></pre>

<p>I'm writing a function that takes a string and returns the number of vowels in that string. </p>

<p>The code above is what I used to compare each letter to see if it was a vowel. It worked.</p>

<p>However, the code seems incredibly messy to me. Yet I have no idea how to write it better. Is there a more concise way to write this code?</p>
