Answered step by step
Verified Expert Solution
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
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: 1Step 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