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!

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

Bummer: There should be three elements inside the `coordinates` array. I have commas in my solution not understanding

var coordinates = [ [2, 3], [2, 12], [7, 10], [7, 10], ];

not sure what firing the error code please advise & thank you

var coordinates = [
 [2, 3],
 [2, 12],
 [7, 10],
 [4, 5],

2 Answers

Hi! I think the last element in the array shouldn't have a comma

Thank you Ismael for your response :) I gave it a go by removing the last comma but im getting the same error message.

The challenge is asking for 3 elements, and you have 4 elements. That could be causing the error

Yes that was it lol I appreciate your help