✨ 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 Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Removing Items From Arrays
    • Close
  • Cody Norman
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Cody Norman
    Full Stack JavaScript Techdegree Student 3,421 Points

    Removing Items From Arrays

    Posted on Jun 13, 2020 by Cody Norman
    .a{fill-rule:evenodd;}techdegree
    Cody Norman
    Full Stack JavaScript Techdegree Student 3,421 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Removing Items From Arrays

    1 Answer

  • Eduardo Vargas
    Eduardo Vargas
    5,871 Points

    Semicolon or no semicolon?

    Posted on Sep 2, 2019 by Eduardo Vargas
    Eduardo Vargas
    5,871 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Removing Items From Arrays

    1 Answer

  • Anna Khodun
    Anna Khodun
    5,476 Points

    more about "ethO" .

    Posted on Jul 4, 2018 by Anna Khodun
    Anna Khodun
    5,476 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Removing Items From Arrays

    2 Answers

  • Adam Maley
    Adam Maley
    5,946 Points

    Unshift vs shift...poor choice of naming.

    Posted on May 2, 2018 by Adam Maley
    Adam Maley
    5,946 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Removing Items From Arrays

    3 Answers

  • Aakash Srivastav
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Aakash Srivastav
    Full Stack JavaScript Techdegree Student 11,638 Points

    Removing Items From Array

    Posted on Apr 25, 2018 by Aakash Srivastav
    .a{fill-rule:evenodd;}techdegree
    Aakash Srivastav
    Full Stack JavaScript Techdegree Student 11,638 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Removing Items From Arrays

    1 Answer

  • seong lee
    seong lee
    4,503 Points

    cant you just do this: var number = [1,2,3,4,5,6] number.pop(2)

    Posted on Nov 16, 2017 by seong lee
    seong lee
    4,503 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Removing Items From Arrays

    4 Answers

  • Enemuo Felix
    Enemuo Felix
    1,895 Points

    Removing Items from an Array

    Posted on Sep 18, 2017 by Enemuo Felix
    Enemuo Felix
    1,895 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Removing Items From Arrays

    2 Answers

  • Daiane Silva
    Daiane Silva
    5,668 Points

    Well, I can remove items from the beginning and the end of my array, but If I want to remove the item in the middle?

    Posted on Jul 14, 2017 by Daiane Silva
    Daiane Silva
    5,668 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Removing Items From Arrays

    1 Answer

  • Abhijit Das
    Abhijit Das
    5,022 Points

    How to get previous object of the last item from the array list?

    Posted on Jul 3, 2017 by Abhijit Das
    Abhijit Das
    5,022 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Removing Items From Arrays

    3 Answers

  • artdesiatnik
    artdesiatnik
    2,329 Points

    why "length" is a property and not a method like pop or shift?

    Posted on Jan 11, 2017 by artdesiatnik
    artdesiatnik
    2,329 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Removing Items From Arrays

    2 Answers

  • Blaize Lange
    Blaize Lange
    2,298 Points

    are push() and unshift() only really useful in more complicated code?

    Posted on Jan 10, 2017 by Blaize Lange
    Blaize Lange
    2,298 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Removing Items From Arrays

    1 Answer

  • Chris Harkin
    Chris Harkin
    1,104 Points

    Removing items from arrays Challenge Task 1

    Posted on May 19, 2016 by Chris Harkin
    Chris Harkin
    1,104 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Removing Items From Arrays

    1 Answer

  • Chris Harkin
    Chris Harkin
    1,104 Points

    Removing items from arrays Challenge Task 1

    Posted on May 19, 2016 by Chris Harkin
    Chris Harkin
    1,104 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Removing Items From Arrays

    8 Answers

  • A X
    A X
    12,842 Points

    For Treehouse Team: A Video Transcript Typo that Needs to be Fixed

    Posted on Apr 12, 2016 by A X
    A X
    12,842 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Removing Items From Arrays

    1 Answer

  • Howie Yeo
    PLUS
    Howie Yeo
    Courses Plus Student 3,639 Points

    Removing more than 1 element using pop and shift method?

    Posted on Jul 11, 2015 by Howie Yeo
    Howie Yeo
    Courses Plus Student 3,639 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Removing Items From Arrays

    3 Answers

  • Abe Layee
    Abe Layee
    8,378 Points

    Is it possible to specify which item to remove from an array using the pop() or shift() method.

    Posted on Jul 9, 2015 by Abe Layee
    Abe Layee
    8,378 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Removing Items From Arrays

    2 Answers

  • jessicapei
    jessicapei
    7,885 Points

    Why is the JavaScript console in Chrome some times grayed out (I cannot open it)? How can I fix this?

    Posted on Jul 6, 2015 by jessicapei
    jessicapei
    7,885 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Removing Items From Arrays

    1 Answer

  • Keith Greatz
    Keith Greatz
    4,377 Points

    .push and .unshift command returns value of length?

    Posted on Jun 21, 2015 by Keith Greatz
    Keith Greatz
    4,377 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Removing Items From Arrays

    1 Answer

  • Margaret James
    Margaret James
    9,444 Points

    Retrieving removed variable for New Array

    Posted on Jun 2, 2015 by Margaret James
    Margaret James
    9,444 Points
    • JavaScript
    • JavaScript Loops, Arrays and Objects
    • Tracking Multiple Items with Arrays
    • Removing Items From Arrays

    1 Answer

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.