Keep the right index when you listen for clicks
A classic loop shares one variable. forEach gives each handler its own index.
Search
Tutorials, solutions, and notes published so far. Two characters or more.
A classic loop shares one variable. forEach gives each handler its own index.
map was called on a value the response never included. Default to an array before you iterate.