Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var isCharAVowel = function(ch) {
- var vowels = ["a", "e", "i", "o", "u"];
- for(i = 0; i < vowels.length; i++) {
- if(vowels[i] == ch) {
- console.log(true);
- break;
- }
- else {
- console.log(false);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement