Question: Write a function in Javascript named getVowels, that accepts a string, and returns a list of vowels present in the string. Use a for loop,
Write a function in Javascript named getVowels, that accepts a string, and returns a list of vowels present in the string. Use a for loop, and your function must call isVowel.
What the function should return: getVowels("If the Sun & Moon should Doubt They'd immediately Go out") -> "I e u o o o u o u e y i e i a e y o o u "
*image attached is what i have thus far, not sure where to go from here 
let getVowels = function(str){ 'let vowelList = ""; for (var i = 0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
