HashMap & Set

Frequency Counter

easy
Given an array of values `arr`, return an object (plain map) from each unique value to its occurrence count. Keys should be stringified as in a normal JS object (numbers become string keys). Example: `frequencyCounter([1,1,2,3,3,3])` → `{ "1": 2, "2": 1, "3": 3 }`.
Hint steps(0/3 revealed)
  1. 1

    Complete previous step or reveal to unlock this hint.

  2. 2

    Complete previous step or reveal to unlock this hint.

  3. 3

    Complete previous step or reveal to unlock this hint.