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
  • Piotr Manczak
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Piotr Manczak
    Front End Web Development Techdegree Graduate 29,746 Points

    array.map()?

    Posted October 28, 2026 7:47pm by Piotr Manczak
    .a{fill-rule:evenodd;}techdegree seal-36
    Piotr Manczak
    Front End Web Development Techdegree Graduate 29,746 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Create a Multidimensional Array

    3 Answers

  • Samuel Kleos
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Samuel Kleos
    Front End Web Development Techdegree Student 13,728 Points

    I used the spread operator, and it came up with output on multiple lines?

    Posted December 5, 2022 6:56am by Samuel Kleos
    .a{fill-rule:evenodd;}techdegree
    Samuel Kleos
    Front End Web Development Techdegree Student 13,728 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Create a Multidimensional Array

    1 Answer

  • Peter Huang
    Peter Huang
    5,427 Points

    what " arr.length " does.

    Posted November 26, 2022 8:20pm by Peter Huang
    Peter Huang
    5,427 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Create a Multidimensional Array

    1 Answer

  • Peter Huang
    Peter Huang
    5,427 Points

    Let items dont need to be inside function?

    Posted November 26, 2022 7:42pm by Peter Huang
    Peter Huang
    5,427 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Create a Multidimensional Array

    1 Answer

  • John Lane
    John Lane
    1,697 Points

    Why does "arr" reference the "playlist" array? Is that the nature of "arr" itself or is it assigned?

    Posted May 10, 2022 3:42pm by John Lane
    John Lane
    1,697 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Create a Multidimensional Array

    1 Answer

  • karan Badhwar
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    karan Badhwar
    Web Development Techdegree Graduate 18,136 Points

    MDN example

    Posted December 7, 2021 8:29pm by karan Badhwar
    .a{fill-rule:evenodd;}techdegree seal-36
    karan Badhwar
    Web Development Techdegree Graduate 18,136 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Create a Multidimensional Array

    3 Answers

  • Alex Hort-Francis
    Alex Hort-Francis
    17,074 Points

    On spread syntax and multi-dimensional arrays

    Posted October 16, 2021 10:21am by Alex Hort-Francis
    Alex Hort-Francis
    17,074 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Create a Multidimensional Array

    1 Answer

  • Esther AlQaisi
    Esther AlQaisi
    2,311 Points

    "My Music Playlist" heading not showing

    Posted May 3, 2021 8:32pm by Esther AlQaisi
    Esther AlQaisi
    2,311 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Create a Multidimensional Array

    1 Answer

  • ja5on
    ja5on
    10,339 Points

    On Create a Multidimensional Array video I can't see the link between playlist and function createListItems

    Posted January 25, 2021 6:46pm by ja5on
    ja5on
    10,339 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Create a Multidimensional Array

    2 Answers

  • Kord Monaco
    Kord Monaco
    3,443 Points

    Console gives me an error at line 14: Cannot read property '0' of undefined at createListItems

    Posted November 1, 2020 6:48pm by Kord Monaco
    Kord Monaco
    3,443 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Create a Multidimensional Array

    4 Answers

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