Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Javascript ES6 Write a function called countingLetters. The countingLetters function accepts a string and array arguments. The goal of the function is to count the

Javascript ES6

image text in transcribed

Write a function called countingLetters. The countingLetters function accepts a string and array arguments. The goal of the function is to count the occurance of letter in the sentence. The return should be an object with the key as the lowercase letter and the count as the value. The function should not include counts with anything from the punctions array. There should not be duplicate letters in the object including counts for capital letters vs lowercase letters (T and t) should just be t. const quote = 'The greatest glory in living lies not in never falling, but in rising every time ctuations countingLetters (quote, punctions); cons UUTICLU LION EXPECTED OUTPUT (object): { t: 6,h: 1,e: 10,5: 5,r: 5, a: 3, s: 3,1: 7,0: 2,y: 2,i: 10,n: 8,v: 3,f: 2,b: 1, u: 1,m: 1,w: 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke

1st Edition

0130086509, 978-0130086501

More Books

Students also viewed these Databases questions

Question

Conduct a needs assessment. page 269

Answered: 1 week ago