Div class is causing “Script error”

I asked that question here:

Asking the difference between:

.docunment

vs.

name.parentElement.querySelector

And was told this:

What happens if I add more then 1, what if I want to add more videos?

Then I would need to add another and another.

Staying within the current framework would mean using:

const thewrap = cover.parentElement