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

Task 1 no longer passing -- Error with Challenge!

Hi, So, I would've asked this question right from the challenge, but I kept getting timed out and it wouldn't let me. If you go to the JavaScript 3-part challenge, Creating a Two-Dimensional Array, you should see the challenge about creating a 2 dimensional array. I easily pass task 1 and 2, but when I create 3 new array items, it says that task number 1 is no longer passing on the 3rd task. Could someone give me a helpful bit of code or hint? Thanks!

2 Answers

You should place two data inside each of 4 arrays like this.

var coordinates = [
  [1,2],
  [2,3],
  [3,4],
  [4,5]
];

Hope this helps :)

Ok, that's it, I believe. I just forgot the commas, but my overall structure was correct. Thanks!

Good to know you figured out the error.

Hi Gabriel, It would be easy to find out the question if you provide the link to the challenge task or tick on attach code while you submit your question.