How to retrieve an item from the allWrappers array

The undefined wrapper needs undefined replaced with an index into the allWrappers array.

How is that done in here?

As I understand it, nothing gets updated other than the wrapper property line.

"wrapper": undefined

What gets changed, I don't understand?

Doing this is wrong, I was told. "wrapper": index

Undefined gets replaced with an index into the allWrappers array.

I don't understand what that means.

Here is the code if that helps: https://jsfiddle.net/kbnw28gt/

function findPlayers() {
    const allCovers = document.querySelectorAll(".cover");
    const allWrappers = document.querySelectorAll(".wrap");
    allWrappers.forEach(function addToPlayers(cover, index) {
      players.push({
       "covers": cover,
       "wrapper": undefined
      });
    });
  }
How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum