An example solution to the warm-up exercise on this LearnHowToProgram lesson.
Test: "It recognizes a single vowel."
Expect(vowelCounter("a")).toEqual(1);
This is simplest because you'd only need to compare a single letter to a list of vowels -- nothing to worry about in terms of case-sensitivity, spaces, or punctuation etc.
Test: "It recognizes a single vowel in a word with multiple characters."
Expect(vowelCounter("cat")).toEqual(1);