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

New No-Code Track! 🚀 New videos dropping every week—start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

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

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Community Projects
    • Live Sessions
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Community Projects Live Sessions Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • 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
  • 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.

    Treehouse

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

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.