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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!