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

Tell us what’s happening:

What does destructuring the value of players have to do with anything

Your code so far

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

/* file: styles.css */

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


const setPlayerCards = (arr = "players") => {};


// User Editable Region

Your browser information:

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

Challenge Information:

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

“players” is the de-structured variable name. It doesn’t need quotes.

why is that, if you dont mind explaining a little bit further

Like with any other variable name, it is more accessible and easier to use. You can just use the variable name to recall the information stored in it. An easier example of destructuring an object might help:

The instructions say that the variable has been destructured at line 175 of the code.

Explain to me how the solve issues

hi @Toheeb111 , please open your own topic to ask for help

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge. This button only appears if you have tried to submit an answer at least three times.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.