Question: 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

Javascript ES6 Write a function called countingLetters. The countingLetters function accepts a

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

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!