I have created a library called stringLibrary.
js with a function called 'isVowel' as shown below
function isVowel(aCharacter)
/************************************************** **********************/
/*Function takes one argument, a string which consists of a single */
/*character. The function returns the boleen value true if the character*/
/*is one of a, A, e, E, i, I, o, O, u, U. If the character is not one of*/
/*these the function returns the bolean value false. */
/************************************************** **********************/
{
return ((aCharacter == 'a') ||
(aCharacter == 'A') ||
(aCharacter == 'e') ||
(aCharacter == 'E') ||
(aCharacter == 'i') ||
(aCharacter == 'I') ||
(aCharacter == 'o') ||
(aCharacter == 'O') ||
(aCharacter == 'u') ||
(aCharacter == 'U'))
};
I now want to create another function called 'dropVowels'.
This function needs to take a string as its argument and return a new string with vowels removed, Whilst using the 'dropVowel function???
I am a newbie to Javascript so any help would be great.
Thanks