Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Vowel Count

function getCount(str) {
  let vowelsCount = 0;
  let vowels = 'aeiou'
  
  for(let i =0; i<str.length; i++){
    if(vowels.indexOf(str[i])>-1){
      vowelsCount++
    }
    
  }
  
  // enter your magic here
  
  return vowelsCount;
 
PREVIOUS NEXT
Tagged: #Vowel #Count
ADD COMMENT
Topic
Name
9+5 =