จงเขียนฟังก์ชั่นที่ส่งจำนวนสระออกมา (a,e,i,o,u) จากจำนวนเต็มที่ส่งเข้าไปแบบ recursive
Examples
countVowels(“apple”) ➞ 2
countVowels (“cheesecake”) ➞ 5
countVowels (“bbb”) ➞ 0
จงเขียนฟังก์ชั่นที่ส่งจำนวนสระออกมา (a,e,i,o,u) จากจำนวนเต็มที่ส่งเข้าไปแบบ recursive
Examples
countVowels(“apple”) ➞ 2
countVowels (“cheesecake”) ➞ 5
countVowels (“bbb”) ➞ 0