Course · Section 9: Data Structures, Modern Operators and Strings · Lecture 118: Enhanced Object Literals
Implement `frequency(arr)` returning an object mapping each value to how many times it appears.
+ 1 hidden test run on Submit.
Tallying each value into an object builds a frequency map in one pass.
Run your code to see results.