Skip to main content

NOTICE: On Friday Nov 6, Workspaces will be temporarily unavailable for maintenance.

🚀 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

    arrays

    Posted October 26, 2026 6:00pm by Piotr Manczak
    .a{fill-rule:evenodd;}techdegree seal-36
    Piotr Manczak
    Front End Web Development Techdegree Graduate 29,746 Points
    • JavaScript
    • JavaScript Arrays
    • Store Multiple Values in an Array
    • Access Array Elements by Index

    2 Answers

  • webdevelopmenthacks
    webdevelopmenthacks
    6,693 Points

    Im trying everything I can to get through this javascript Array Exercise, to no avail!

    Posted December 3, 2025 6:48am by webdevelopmenthacks
    webdevelopmenthacks
    6,693 Points
    • JavaScript
    • JavaScript Arrays
    • Store Multiple Values in an Array
    • Access Array Elements by Index

    1 Answer

  • Bhavini Prajapati
    Bhavini Prajapati
    3,330 Points

    There is some issues going with challenge code checking. It keeps throwing errors although its right

    Posted April 24, 2024 4:37pm by Bhavini Prajapati
    Bhavini Prajapati
    3,330 Points
    • JavaScript
    • JavaScript Arrays
    • Store Multiple Values in an Array
    • Access Array Elements by Index

    2 Answers

  • Phil Lee
    Phil Lee
    6,638 Points

    why i used console.log(players[5]),but not correct?

    Posted January 18, 2024 3:07am by Phil Lee
    Phil Lee
    6,638 Points
    • JavaScript
    • JavaScript Arrays
    • Store Multiple Values in an Array
    • Access Array Elements by Index

    1 Answer

  • payton johnson
    payton johnson
    2,971 Points

    Confused on why it is wrong.

    Posted July 3, 2023 11:47pm by payton johnson
    payton johnson
    2,971 Points
    • JavaScript
    • JavaScript Arrays
    • Store Multiple Values in an Array
    • Access Array Elements by Index

    1 Answer

  • Khris Fuentespina
    Khris Fuentespina
    6,974 Points

    What's wrong with my code? Why does it say "Bummer: Arrays are 'zero-based,'..."

    Posted June 23, 2023 2:31am by Khris Fuentespina
    Khris Fuentespina
    6,974 Points
    • JavaScript
    • JavaScript Arrays
    • Store Multiple Values in an Array
    • Access Array Elements by Index

    2 Answers

  • Shahzad Qadir
    Shahzad Qadir
    5,734 Points

    Stuck at this error Bummer: Use [ ] and a number to access an item in an array. For example, `players[1]

    Posted December 20, 2022 5:44am by Shahzad Qadir
    Shahzad Qadir
    5,734 Points
    • JavaScript
    • JavaScript Arrays
    • Store Multiple Values in an Array
    • Access Array Elements by Index

    2 Answers

  • manqing cao
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    manqing cao
    Full Stack JavaScript Techdegree Student 3,125 Points

    Hello, I have typed players[5] to access array last element, why am I wrong?

    Posted July 6, 2022 12:21am by manqing cao
    .a{fill-rule:evenodd;}techdegree
    manqing cao
    Full Stack JavaScript Techdegree Student 3,125 Points
    • JavaScript
    • JavaScript Arrays
    • Store Multiple Values in an Array
    • Access Array Elements by Index

    3 Answers

  • Albert Almonte
    Albert Almonte
    1,824 Points

    script.js contains an array of string values (the names of players in a game). Practice using array indices by accessing

    Posted April 8, 2022 10:47pm by Albert Almonte
    Albert Almonte
    1,824 Points
    • JavaScript
    • JavaScript Arrays
    • Store Multiple Values in an Array
    • Access Array Elements by Index

    1 Answer

  • Sara Espinal
    Sara Espinal
    4,357 Points

    not sure why this is not working

    Posted July 28, 2021 4:55pm by Sara Espinal
    Sara Espinal
    4,357 Points
    • JavaScript
    • JavaScript Arrays
    • Store Multiple Values in an Array
    • Access Array Elements by Index

    1 Answer

  • Gerardo Espinoza
    Gerardo Espinoza
    930 Points

    Can't get through Code Challenge: Access Array Elements by Index because of an error message.

    Posted July 7, 2021 10:35pm by Gerardo Espinoza
    Gerardo Espinoza
    930 Points
    • JavaScript
    • JavaScript Arrays
    • Store Multiple Values in an Array
    • Access Array Elements by Index

    1 Answer

  • asia flowers
    asia flowers
    2,496 Points

    this looks perfectly correct to me. what am i overlooking?

    Posted June 8, 2021 6:28pm by asia flowers
    asia flowers
    2,496 Points
    • JavaScript
    • JavaScript Arrays
    • Store Multiple Values in an Array
    • Access Array Elements by Index

    1 Answer

  • Alonzo Delk
    Alonzo Delk
    6,991 Points

    Help, not sure whats wrong but I'm pretty sure this code is correct?

    Posted May 2, 2021 3:54am by Alonzo Delk
    Alonzo Delk
    6,991 Points
    • JavaScript
    • JavaScript Arrays
    • Store Multiple Values in an Array
    • Access Array Elements by Index

    2 Answers

  • charlie alton
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    charlie alton
    Front End Web Development Techdegree Student 8,879 Points

    My code is not working

    Posted April 30, 2021 4:24am by charlie alton
    .a{fill-rule:evenodd;}techdegree
    charlie alton
    Front End Web Development Techdegree Student 8,879 Points
    • JavaScript
    • JavaScript Arrays
    • Store Multiple Values in an Array
    • Access Array Elements by Index

    1 Answer

  • Ndhokoyo Aaron
    Ndhokoyo Aaron
    6,589 Points

    script.js contains an array of string values (the names of players in a game). Practice using array indices by accessing

    Posted March 5, 2021 5:23pm by Ndhokoyo Aaron
    Ndhokoyo Aaron
    6,589 Points
    • JavaScript
    • JavaScript Arrays
    • Store Multiple Values in an Array
    • Access Array Elements by Index

    1 Answer

  • Juan Pablo Castrillon
    Juan Pablo Castrillon
    863 Points

    I am using console.log(players [0] )

    Posted March 2, 2021 9:49pm by Juan Pablo Castrillon
    Juan Pablo Castrillon
    863 Points
    • JavaScript
    • JavaScript Arrays
    • Store Multiple Values in an Array
    • Access Array Elements by Index

    1 Answer

  • Alejandro Jiménez-Flores
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Alejandro Jiménez-Flores
    Full Stack JavaScript Techdegree Student 14,981 Points

    Challenge Task 2 does not accept the correct answer

    Posted July 26, 2020 7:09pm by Alejandro Jiménez-Flores
    .a{fill-rule:evenodd;}techdegree
    Alejandro Jiménez-Flores
    Full Stack JavaScript Techdegree Student 14,981 Points
    • JavaScript
    • JavaScript Arrays
    • Store Multiple Values in an Array
    • Access Array Elements by Index

    1 Answer

  • Melissa Ferguson
    Melissa Ferguson
    8,274 Points

    stuck on a challenge that i got right but the system is saying i am wrong and it wont let me move on. How can i skip it?

    Posted June 25, 2020 2:43pm by Melissa Ferguson
    Melissa Ferguson
    8,274 Points
    • JavaScript
    • JavaScript Arrays
    • Store Multiple Values in an Array
    • Access Array Elements by Index

    2 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