Learn Modern JavaScript Methods by Building Football Team Cards - Step 36

Tell us what’s happening:

I have searched all over about this step, it is a pretty simple step but maybe it is something small that I am not seeing. I am getting the same error message no matter what I try to change. It seems I am not properly accessing the .innerHTML for playerCards, and it is not being set to an empty string.

Your code so far

<!-- file: index.html -->

/* file: script.js */
// User Editable Region

document.getElementById("playerCards").innerHTML = "";

// User Editable Region
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36

Challenge Information:

Learn Modern JavaScript Methods by Building Football Team Cards - Step 36

Hi @koyotem

You should access the innerHTML property of the playerCards element.

Try using the variable you defined in line 5.

Happy coding