## Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

### Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

# Uncaught Syntax Error: Invalid Destructuring assignment target?? Can anyone point me to my mistake pls?

Can anyone tell me where I went wrong?I am getting Uncaught SyntaxError: Invalid destructuring assignment target on the console and nothing runs. Appreciate help!

```// 1. Create a multidimensional array to hold quiz questions and answers

const questions = [
['How many planets are in the Solar System?', '8'],
['How many continents are there?', '7'],
['How many legs does an insect have?', '6'],
['What year was JavaScript created?', '1995']
];
// 2. Store the number of questions answered correctly

const correct= [];
const incorrect =[];
/*
3. Use a loop to cycle through each question
- Present each question to the user
- Compare the user's response to answer in the array
- If the response matches the answer, the number of correctly
*/
for (let i=0; i<questions.length; i++){
let question = questions[i],;
let response = prompt(question);

correct.push(question);

}else {
incorrect.push(question);
}
}

function createListItems(arr) {
let items = '';
for (let i = 0; i < arr.length; i++) {
items += `<li>\${arr[i]}</li>`;
}
return items;
}

// 4. Display the number of correct answers to the user
<ol> \${createListItems(correct)}</ol>

<h1>You got these questions wrong</h1>
<ol>\${createListItems(incorrect)} </ol>
`;

document.querySelector('main').innerHTML = html;
``` You are referring to the elements of the multidimensional array 'questions' incorrectly.

```for (let i=0; i<questions.length; i++){
let question = questions[i],;
let response = prompt(question);
```

You should write:

```  let question = questions[i];
```

```  let question = questions[i],;