Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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; iStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started