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 Loops, Arrays and Objects Tracking Multiple Items with Arrays Two-Dimensional Arrays

fahad lashari
fahad lashari
7,693 Points

Would you call this an Arrayception?

get it hehe....ok sorry

Karl Pupé
Karl Pupé
6,718 Points

lol! I get it! Good one! :)

most insightful comment ever on this video

1 Answer

Matt Hutcherson
Matt Hutcherson
4,717 Points

Even more interesting is the idea that like in the movie you can actually "turn" a multi-dimensional array. This is often a programming interview question.

Turn a matrix: [[ 1, 2, 3 ], [ 4, 5, 6 ], [ 7, 8, 9 ]]

=>

[[ 7, 4, 1 ], [ 8, 5, 2 ], [ 9, 6, 3 ]]