Given a string, we need to create an object that represents the character frequencies as keys and their counts as values.

Given a string, we need to create an object that represents the character frequencies as keys and their counts as values.

This question was  asked  many times in  Frontend Engineer Coding Interviews , in JavaScript, th…

0