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

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

New No-Code Track! 🚀start learning today!

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

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

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

  • 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
    • 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
  • 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
    • Showing results for:
    • JavaScript
    • JavaScript Arrays
    • Store Multiple Values in an Array
    • Access Array Elements by Index
    • Close
  • Bhavini Prajapati
    Bhavini Prajapati
    3,330 Points

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

    Posted on Apr 24, 2024 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 on Jan 18, 2024 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 on Jul 3, 2023 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 on Jun 23, 2023 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 on Dec 20, 2022 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 on Jul 6, 2022 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 on Apr 8, 2022 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 on Jul 28, 2021 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 on Jul 7, 2021 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 on Jun 8, 2021 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 on May 2, 2021 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 on Apr 30, 2021 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 on Mar 5, 2021 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 on Mar 2, 2021 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 on Jul 26, 2020 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 on Jun 25, 2020 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.