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
  • Mark Wisdom Reeves
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Mark Wisdom Reeves
    Full Stack JavaScript Techdegree Graduate 18,275 Points

    Complete the code below to store the number of items in the array scores into the variable totalScores:

    Posted December 3, 2019 3:05pm by Mark Wisdom Reeves
    .a{fill-rule:evenodd;}techdegree seal-36
    Mark Wisdom Reeves
    Full Stack JavaScript Techdegree Graduate 18,275 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Review Adding and Removing Items from Arrays

    2 Answers

  • Rose M
    Rose M
    3,156 Points

    Store in Arrays How do I store a value in an array?

    Posted September 24, 2019 2:40pm by Rose M
    Rose M
    3,156 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Review Adding and Removing Items from Arrays

    1 Answer

  • Vijayalaxmi vastrad
    Vijayalaxmi vastrad
    2,789 Points

    Complete the code below to store the number of items in the array scores into the variable totalScores:

    Posted September 13, 2019 8:37am by Vijayalaxmi vastrad
    Vijayalaxmi vastrad
    2,789 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Review Adding and Removing Items from Arrays

    2 Answers

  • bhupendra rana
    PLUS
    bhupendra rana
    Courses Plus Student 5,610 Points

    Arrays

    Posted March 26, 2019 9:23pm by bhupendra rana
    bhupendra rana
    Courses Plus Student 5,610 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Review Adding and Removing Items from Arrays

    2 Answers

  • james chhun
    james chhun
    5,932 Points

    var scores = [ 76, 79, 85, 87, 89 , 90, 99]; var totalScores = scores. ; .. ? what method do i use?

    Posted February 8, 2019 1:35pm by james chhun
    james chhun
    5,932 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Review Adding and Removing Items from Arrays

    2 Answers

  • Randell Purington
    Randell Purington
    9,992 Points

    How am i wrong?

    Posted July 10, 2018 4:54am by Randell Purington
    Randell Purington
    9,992 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Review Adding and Removing Items from Arrays

    2 Answers

  • jiwan gurung
    jiwan gurung
    4,248 Points

    im not sure why this is incorrect.the unshift method adds new values to the arrays.

    Posted November 20, 2017 4:48am by jiwan gurung
    jiwan gurung
    4,248 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Review Adding and Removing Items from Arrays

    1 Answer

  • Abdullah Al Faruk
    PLUS
    Abdullah Al Faruk
    Courses Plus Student 3,270 Points

    How to do this?

    Posted July 22, 2017 2:20pm by Abdullah Al Faruk
    Abdullah Al Faruk
    Courses Plus Student 3,270 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Review Adding and Removing Items from Arrays

    2 Answers

  • Apoorv Gusain
    Apoorv Gusain
    1,270 Points

    arrays

    Posted July 3, 2017 6:54pm by Apoorv Gusain
    Apoorv Gusain
    1,270 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Review Adding and Removing Items from Arrays

    1 Answer

  • Julian Cubillos
    Julian Cubillos
    2,060 Points

    Please fill in the correct answer in each blank provided below.

    Posted June 5, 2017 7:51pm by Julian Cubillos
    Julian Cubillos
    2,060 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Review Adding and Removing Items from Arrays

    0 Answers

  • Daniel Haasenritter
    PLUS
    Daniel Haasenritter
    Courses Plus Student 3,463 Points

    Confusing Question

    Posted June 3, 2017 7:23pm by Daniel Haasenritter
    Daniel Haasenritter
    Courses Plus Student 3,463 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Review Adding and Removing Items from Arrays

    2 Answers

  • Julian Cubillos
    Julian Cubillos
    2,060 Points

    var scores = [ 76, 79, 85, 87, 89 , 90, 99]; var totalScores = scores.___________; Submit Answer

    Posted June 2, 2017 8:39pm by Julian Cubillos
    Julian Cubillos
    2,060 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Review Adding and Removing Items from Arrays

    1 Answer

  • Melissa St Moore
    Melissa St Moore
    1,087 Points

    I'm not sure how to answer this question

    Posted January 8, 2017 2:59am by Melissa St Moore
    Melissa St Moore
    1,087 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Review Adding and Removing Items from Arrays

    2 Answers

  • vsiddharthverma
    vsiddharthverma
    3,182 Points

    How to store the number of items in the array scores into the variable

    Posted November 30, 2016 5:29pm by vsiddharthverma
    vsiddharthverma
    3,182 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Review Adding and Removing Items from Arrays

    1 Answer

  • terminator genesys
    terminator genesys
    1,134 Points

    code challenge

    Posted October 27, 2016 7:30pm by terminator genesys
    terminator genesys
    1,134 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Review Adding and Removing Items from Arrays

    2 Answers

  • Sana Murad
    Sana Murad
    3,859 Points

    I enter ages.unshift (23); and it's giving me error, what's wrong

    Posted September 23, 2016 2:23am by Sana Murad
    Sana Murad
    3,859 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Review Adding and Removing Items from Arrays

    2 Answers

  • channonhall
    channonhall
    12,247 Points

    I've been workin' on this for days now can someone help me? Can't seem to find the answer

    Posted July 25, 2016 12:32pm by channonhall
    channonhall
    12,247 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Review Adding and Removing Items from Arrays

    1 Answer

  • SIYUOM MAMO
    SIYUOM MAMO
    6,818 Points

    finish the cod below to add the value 23 to the beginning of the array ages

    Posted July 17, 2016 11:02pm by SIYUOM MAMO
    SIYUOM MAMO
    6,818 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Review Adding and Removing Items from Arrays

    1 Answer

  • Seth Warner
    Seth Warner
    5,348 Points

    On the quiz "Review Adding and Removing items form arrays". the question "Which array method returns the first", has

    Posted January 24, 2016 2:23am by Seth Warner
    Seth Warner
    5,348 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Review Adding and Removing Items from Arrays

    1 Answer

  • Tarandeep Singh
    Tarandeep Singh
    1,244 Points

    Complete the code below to store the number of items in the array scores into the variable totalScores:

    Posted October 31, 2015 9:07pm by Tarandeep Singh
    Tarandeep Singh
    1,244 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Review Adding and Removing Items from Arrays

    6 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