Increase the saved count by one. Goal: Read the old frequency and store one more than that.
A map can count how often each value appears.
Every time the loop sees a number, its count increases by one.
Drag tokens into the blanks
1// Goal: Read the old frequency and store one more than that.2function starterExample() {3const counts = new Map([["red", 2]]);4 counts.set("red", counts.get("red") ___ 1);5}