Question
(1a)Write a function named isLetter that accepts a character and returns true if the character is an alphabetic character, false otherwise. Your function should work
(1a)Write a function named isLetter that accepts a character and returns true if the character is an alphabetic character, false otherwise. Your function should work for both upper and lower case characters. Use a RegExp to solve this problem.
(1b)Re-write your previous isLetter function as an arrow function.
(2a)Write a function named isVowel that accepts a character and returns true if the character a vowel, false otherwise. Your function should work for both upper and lower case vowels. Use a RegExp to solve this problem. AssumeY is a vowel.
(2b)Re-write your previous isVowel function as an arrow function.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started