Question: Javascript ES6 Question 2 - Objects You are to implement the following functions: getCharacterFrequency -10pts This function takes a single string (str) argument and returns

Javascript ES6Javascript ES6 Question 2 - Objects You are to implement the following

Question 2 - Objects You are to implement the following functions: getCharacterFrequency -10pts This function takes a single string (str) argument and returns an object. o The object's properties will be the unique letters present in str The value of each property will be the frequency of each character present in the string. NOTE: Uppercase and Lowercase letters should be grouped in the same count. For example, the word Babble would result in the following object "B3, 11 This count includes upper and lovercase B'S printcharacterFrequency 10pts This function will take a single object. The object should be of the type returned by getCharacterFrequency This function will display each character and it's corresponding frequency Each character should be surrounded by quotation marks in your output. Your output should account for singular and plural values. For example, the word Foo would result in: F' occurs 1 time o occurs 2 times Next, use the following function to generate output

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!