aeiou

Run Settings
LanguageJavaScript
Language Version
Run Command
// const findVowels =(str)=>{ // let count = 0; // for(let i=0; i<str.length; i++){ // if(str[i]==='a' || str[i]==='e' || str[i]==='i' || str[i]==='o' || str[i]==='u') // count++ // } // return count; // } let str = "dfgh" let regex=/[aeiou]/gi; let ans= str.match(regex) let testing = regex.test(str) console.log(ans) console.log(testing) // console.log(findVowels("Hello World!")); // console.log(findVowels("abracadabra"));
Editor Settings
Theme
Key bindings
Full width
Lines