Given a string, return an object that shows how many vowels and consonants there are. Input: "heads", Output: { vowel: 2, consonant: 3 }
Given a string, return an object that shows how many vowels and consonants there are.
Input: "heads",
Output:
{ vowel: 2,
consonant: 3
}