

What does this program print?
Trace the program the way the computer would, then make your call before running anything.
const counts = {};
for (const ch of "banana") counts[ch] = (counts[ch] || 0) + 1;
console.log(counts);

Trace the program the way the computer would, then make your call before running anything.
const counts = {};
for (const ch of "banana") counts[ch] = (counts[ch] || 0) + 1;
console.log(counts);