Skip to main content

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • Gal Parselany
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Gal Parselany
    Full Stack JavaScript Techdegree Graduate 26,281 Points

    my solution:

    Posted February 20, 2023 2:53pm by Gal Parselany
    .a{fill-rule:evenodd;}techdegree seal-36
    Gal Parselany
    Full Stack JavaScript Techdegree Graduate 26,281 Points
    • JavaScript
    • Build a Two-Dimensional Array

    0 Answers

  • Frank Greek
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Frank Greek
    Full Stack JavaScript Techdegree Student 981 Points

    Return elements

    Posted December 27, 2022 2:48pm by Frank Greek
    .a{fill-rule:evenodd;}techdegree
    Frank Greek
    Full Stack JavaScript Techdegree Student 981 Points
    • JavaScript
    • Build a Two-Dimensional Array

    2 Answers

  • Eric Peppler
    Eric Peppler
    3,675 Points

    Proud of my code, should I be?

    Posted November 26, 2020 1:30am by Eric Peppler
    Eric Peppler
    3,675 Points
    • JavaScript
    • Build a Two-Dimensional Array

    0 Answers

  • Yuting Le
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Yuting Le
    Full Stack JavaScript Techdegree Graduate 20,125 Points

    Does these two codes work the same in here?

    Posted February 5, 2020 9:32pm by Yuting Le
    .a{fill-rule:evenodd;}techdegree seal-36
    Yuting Le
    Full Stack JavaScript Techdegree Graduate 20,125 Points
    • JavaScript
    • Build a Two-Dimensional Array

    1 Answer

  • Eddy Yi
    Eddy Yi
    8,746 Points

    Can I just do like this deck.push([suites[i], ranks[j]]); not making card variable?

    Posted December 30, 2019 9:08pm by Eddy Yi
    Eddy Yi
    8,746 Points
    • JavaScript
    • Build a Two-Dimensional Array

    1 Answer

  • Jiten Mehta
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Jiten Mehta
    Front End Web Development Techdegree Graduate 21,209 Points

    The suites symbol does not appear in my console

    Posted December 28, 2019 4:24pm by Jiten Mehta
    .a{fill-rule:evenodd;}techdegree seal-36
    Jiten Mehta
    Front End Web Development Techdegree Graduate 21,209 Points
    • JavaScript
    • Build a Two-Dimensional Array

    1 Answer

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

    Did I console . log my Deck correctly?

    Posted December 24, 2019 9:36am by Samantha Atkinson
    .a{fill-rule:evenodd;}techdegree seal-36
    Samantha Atkinson
    Front End Web Development Techdegree Graduate 43,793 Points
    • JavaScript
    • Build a Two-Dimensional Array

    1 Answer

  • Armin Kadic
    Armin Kadic
    16,242 Points

    Is one loop preferred over the other?

    Posted November 12, 2019 11:21pm by Armin Kadic
    Armin Kadic
    16,242 Points
    • JavaScript
    • Build a Two-Dimensional Array

    1 Answer

  • MIHA W.LEE
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    MIHA W.LEE
    PHP Development Techdegree Graduate 25,452 Points

    Array practice question

    Posted July 22, 2019 8:30am by MIHA W.LEE
    .a{fill-rule:evenodd;}techdegree seal-36
    MIHA W.LEE
    PHP Development Techdegree Graduate 25,452 Points
    • JavaScript
    • Build a Two-Dimensional Array

    1 Answer

  • <noob />
    <noob />
    17,063 Points

    my version of the createDec function, its better or worse?

    Posted July 1, 2019 6:47pm by <noob />
    <noob />
    17,063 Points
    • JavaScript
    • Build a Two-Dimensional Array

    1 Answer

  • ken perkerwicz
    ken perkerwicz
    6,167 Points

    can someone please show me where the suit is stored in the second position of the nested array? (8:23)

    Posted December 12, 2018 12:02am by ken perkerwicz
    ken perkerwicz
    6,167 Points
    • JavaScript
    • Build a Two-Dimensional Array

    2 Answers

  • Marius Urbonas
    Marius Urbonas
    7,921 Points

    Why this code doesn't work?

    Posted November 7, 2018 2:44pm by Marius Urbonas
    Marius Urbonas
    7,921 Points
    • JavaScript
    • Build a Two-Dimensional Array

    1 Answer

  • Maxim Melnic
    Maxim Melnic
    4,178 Points

    var card = [ranks[i], suites[l]];

    Posted July 4, 2018 7:19pm by Maxim Melnic
    Maxim Melnic
    4,178 Points
    • JavaScript
    • Build a Two-Dimensional Array

    1 Answer

  • Ben S
    Ben S
    5,638 Points

    Empty card array declaration

    Posted April 24, 2018 2:25pm by Ben S
    Ben S
    5,638 Points
    • JavaScript
    • Build a Two-Dimensional Array

    1 Answer

  • Tani Huang
    Tani Huang
    6,952 Points

    How is this function create ? (shuffle part)

    Posted April 15, 2018 12:47pm by Tani Huang
    Tani Huang
    6,952 Points
    • JavaScript
    • Build a Two-Dimensional Array

    1 Answer

  • Tani Huang
    Tani Huang
    6,952 Points

    function running order ?

    Posted April 15, 2018 11:33am by Tani Huang
    Tani Huang
    6,952 Points
    • JavaScript
    • Build a Two-Dimensional Array

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord