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 Build a Two-Dimensional Array

Samantha Atkinson
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Samantha Atkinson
Front End Web Development Techdegree Graduate 40,307 Points

Did I console . log my Deck correctly?

I am a little confused as I output my deck differently but still got the same results. Did I do bad practice?

for (let i =0; i<myDeck.length; i++){
      console.log(myDeck[i].join(' of '));

}
    ```

1 Answer

Steven Parker
Steven Parker
231,248 Points

In programming, there will almost always be multiple ways to achieve a certain result.

The fact that you're thinking of effective alternative strategies is evidence of your learning progress and grasp of the material. Good job! :+1:

Samantha Atkinson
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Samantha Atkinson
Front End Web Development Techdegree Graduate 40,307 Points

Thanks, Steven, that's great news that you think I'm grasping the material enough to use an effective alternative. And thank you for answering my question again and having my back!!

Merry Christmas to you