Question: JAVASCRIPT: Write a function named isVowel that accepts a character and returns true if the character a vowel, false otherwise. Use a RegExp to solve
JAVASCRIPT:
Write a function named isVowel that accepts a character and returns true if the character a vowel, false otherwise. Use a RegExp to solve this problem, as covered in class week 7.
Examples:
isVowel('Y') => true
isVowel('e') => true
isVowel('7') => false
isVowel('n') => false
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
