🤑 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
  • Tiffany Charles
    Tiffany Charles
    1,118 Points

    There is a bug here

    Posted October 5, 2018 8:54pm by Tiffany Charles
    Tiffany Charles
    1,118 Points
    • Ruby
    • Ruby Collections
    • Ruby Arrays
    • Accessing Items in Arrays

    2 Answers

  • William Ramos
    William Ramos
    1,535 Points

    I've been stuck on this one and I need some help.

    Posted July 12, 2017 11:02pm by William Ramos
    William Ramos
    1,535 Points
    • Ruby
    • Ruby Collections
    • Ruby Arrays
    • Accessing Items in Arrays

    1 Answer

  • uc
    uc
    4,309 Points

    What should I do?

    Posted February 15, 2017 9:48am by uc
    uc
    4,309 Points
    • Ruby
    • Ruby Collections
    • Ruby Arrays
    • Accessing Items in Arrays

    1 Answer

  • Marcela Jackowski
    Marcela Jackowski
    2,045 Points

    Create a variable called "last_item" that contains the last item from the "grocery_list" array. You can use either the m

    Posted January 29, 2017 4:32am by Marcela Jackowski
    Marcela Jackowski
    2,045 Points
    • Ruby
    • Ruby Collections
    • Ruby Arrays
    • Accessing Items in Arrays

    2 Answers

  • Marguerite Holden
    Marguerite Holden
    6,075 Points

    Follow up to my question just before this

    Posted October 19, 2016 7:30pm by Marguerite Holden
    Marguerite Holden
    6,075 Points
    • Ruby
    • Ruby Collections
    • Ruby Arrays
    • Accessing Items in Arrays

    1 Answer

  • Marguerite Holden
    Marguerite Holden
    6,075 Points

    This seems like an easy challenge but not getting it.

    Posted October 19, 2016 7:28pm by Marguerite Holden
    Marguerite Holden
    6,075 Points
    • Ruby
    • Ruby Collections
    • Ruby Arrays
    • Accessing Items in Arrays

    3 Answers

  • Marguerite Holden
    Marguerite Holden
    6,075 Points

    I think my answer is correct and can't move forward to do the other challenge tasks.

    Posted October 13, 2016 11:15pm by Marguerite Holden
    Marguerite Holden
    6,075 Points
    • Ruby
    • Ruby Collections
    • Ruby Arrays
    • Accessing Items in Arrays

    3 Answers

  • Jerry Quek
    Jerry Quek
    1,764 Points

    Array error pls help

    Posted November 17, 2015 3:49am by Jerry Quek
    Jerry Quek
    1,764 Points
    • Ruby
    • Ruby Collections
    • Ruby Arrays
    • Accessing Items in Arrays

    2 Answers

  • Jason Carr
    Jason Carr
    5,495 Points

    Almost there! Set a variable called "list_size" that contains the number of items in the array. You can use the "count"

    Posted August 24, 2015 11:07am by Jason Carr
    Jason Carr
    5,495 Points
    • Ruby
    • Ruby Collections
    • Ruby Arrays
    • Accessing Items in Arrays

    2 Answers

  • stevenvandervalk
    stevenvandervalk
    2,866 Points

    The question text formatting is wrong, it doesn't show the first_item underscore.

    Posted October 2, 2014 6:44am by stevenvandervalk
    stevenvandervalk
    2,866 Points
    • Ruby
    • Ruby Collections
    • Ruby Arrays
    • Accessing Items in Arrays

    1 Answer

  • Robert Soule
    Robert Soule
    9,554 Points

    Wording in question is off. It's showing firstitem instead of first_item and grocerylist instead of grocery_list

    Posted September 27, 2014 10:24pm by Robert Soule
    Robert Soule
    9,554 Points
    • Ruby
    • Ruby Collections
    • Ruby Arrays
    • Accessing Items in Arrays

    5 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.