What goes in the blank?
// count words with a Map
const counts = new Map<string, number>();
for (const w of words) {
counts.set(w, (counts.____(w) ?? 0) + 1);
}
Answer: get
Map values are read with get();
Play Problem Solving ▸
?? 0 covers words that have not been seen yet.