Question: Using JavaScript, count the alphabetic letters in a string: Write and test a function named countLetters that accepts a string and counts the number of
Using JavaScript, count the alphabetic letters in a string: Write and test a function named countLetters that accepts a string and counts the number of alphabetic letters in the string.
Examples:
//spaces and punctuation are not letters
countLetters(LB/FB!!) => 4
countLetters("Let's split an Uber!") => 14
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
