Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript JavaScript Arrays Multidimensional Arrays Create a Multidimensional Array

what wrong with this answer? Didn't i do the mulitdimentional array correctly.

note the literal is there bc its the second part of a three part quesion.

script.js
const coordinates=[`[10,70]`];

2 Answers

Clayton Perszyk
MOD
Clayton Perszyk
Treehouse Moderator 48,850 Points

you should use a nested array (you're using a template string).

I took the ticks out. However I’m just confused bc the first part of the challenge said to put a template literal in the array.(Got that right) Then the second part said add a nested array inside the array. And the challengeS always say to add on to the previous question so that’s why I left the ticks. Maybe it’s just me but the questions just need to be a little more clear.

Clayton Perszyk
Clayton Perszyk
Treehouse Moderator 48,850 Points

Not sure where you're seeing put a template literal in array. I worked through steps 1-3 and there is no mention of adding a template literal. The first step mentions assigning an empty ARRAY literal to the variable.