Skip to content

Files

Latest commit

 

History

History

Day-27

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Vowel Count.

Instructions

Return the number (count) of vowels in the given string.

We will consider a, e, i, o, u as vowels

The input can consist of Lower case and upper case letters so make sure to count both of them.

Challenges (0/3 done)

  • getCount("abracadabra") should return 5.
  • getCount("THe Strings are SOO COOL") should return 8.
  • getCount("There exists only 5 vowels") should return 7.
function getCount(str) {
  let vowelsCount = 0;
  // enter your magic here

  return vowelsCount;
}

console.log(getCount("abracadabra"));