Question Bank

JavaScript Array Occurrences Count: Two Approaches Quiz

Difficulty: Medium

Tally how many times each value appears in an array, two ways (reduce + dict and Map-based counter), plus two companions on Object.create(null) safety and case-insensitive string tallies.