var vowels = ["a","e","i","o","u"]; if (vowels.indexOf(letter.toLowerCase()) >= 0) {

buldugum yer
https://stackoverflow.com/questions/...onant-function