Generation

generate functionSun, 13 Nov 2022

parse a string and return vowels only

function getVowels(str) { let res = ''; let vowels = 'aeiou'; for(let i = 0; i < str.length; i++) { if(vowels.includes(str[i])) res += str[i]; } return res; }

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant