You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write a function that returns the number of vowels in a string.
Here we have two solutions, one makes use of a regular expression, and another uses an iterative approach, a for-of loop.