Skip to main content

Notice: Workspaces are undergoing maintenance and are temporarily unavailable.

🚀 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
  • Samuel Kleos
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Samuel Kleos
    Front End Web Development Techdegree Student 13,728 Points

    What if.. 🤔 We reordered the array.

    Posted February 25, 2023 6:23am by Samuel Kleos
    .a{fill-rule:evenodd;}techdegree
    Samuel Kleos
    Front End Web Development Techdegree Student 13,728 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Combining Array Methods
    • Combining filter() and reduce()

    1 Answer

  • Elliott Tuan
    Elliott Tuan
    7,790 Points

    Why can't I return the highest price with teacher's method in video?

    Posted December 9, 2022 3:32am by Elliott Tuan
    Elliott Tuan
    7,790 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Combining Array Methods
    • Combining filter() and reduce()

    1 Answer

  • Istvan Toth
    Istvan Toth
    14,348 Points

    Why do we need filter to make things more complicated if reduce does the job by itself?

    Posted November 29, 2022 10:25pm by Istvan Toth
    Istvan Toth
    14,348 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Combining Array Methods
    • Combining filter() and reduce()

    1 Answer

  • Swan The Human
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Swan The Human
    Full Stack JavaScript Techdegree Student 19,338 Points

    ::Just for clarification:: If you do not set an initializer in the reduce() method, does it default to being an object?

    Posted February 22, 2022 11:34pm by Swan The Human
    .a{fill-rule:evenodd;}techdegree
    Swan The Human
    Full Stack JavaScript Techdegree Student 19,338 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Combining Array Methods
    • Combining filter() and reduce()

    1 Answer

  • chelseacheevers
    chelseacheevers
    13,786 Points

    Combining Filter and Reduce - Video confusion

    Posted August 11, 2021 7:30pm by chelseacheevers
    chelseacheevers
    13,786 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Combining Array Methods
    • Combining filter() and reduce()

    2 Answers

  • Taylor Hall
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Taylor Hall
    Front End Web Development Techdegree Graduate 14,496 Points

    Sorry guys but in the video Combining filter() and reduce() I actually have more questions than answers.

    Posted December 8, 2020 4:56pm by Taylor Hall
    .a{fill-rule:evenodd;}techdegree seal-36
    Taylor Hall
    Front End Web Development Techdegree Graduate 14,496 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Combining Array Methods
    • Combining filter() and reduce()

    1 Answer

  • Kaung Khant Zaw
    Kaung Khant Zaw
    1,515 Points

    Reduce method

    Posted September 9, 2019 4:20pm by Kaung Khant Zaw
    Kaung Khant Zaw
    1,515 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Combining Array Methods
    • Combining filter() and reduce()

    1 Answer

  • gerardo keys
    gerardo keys
    14,292 Points

    Not understanding the .filter and .reduce here.

    Posted April 23, 2019 12:51am by gerardo keys
    gerardo keys
    14,292 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Combining Array Methods
    • Combining filter() and reduce()

    1 Answer

  • yoav green
    yoav green
    8,611 Points

    why do we need to "return item" in order to get { name: 'paper towels', price: 6.99 } eventually

    Posted February 1, 2019 12:36pm by yoav green
    yoav green
    8,611 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Combining Array Methods
    • Combining filter() and reduce()

    1 Answer

  • Peter Retvari
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Peter Retvari
    Full Stack JavaScript Techdegree Student 8,392 Points

    I little bit confused with the starting value in this project

    Posted August 29, 2018 8:47am by Peter Retvari
    .a{fill-rule:evenodd;}techdegree
    Peter Retvari
    Full Stack JavaScript Techdegree Student 8,392 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Combining Array Methods
    • Combining filter() and reduce()

    0 Answers

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

    combining filter() and reduce()

    Posted July 31, 2018 3:41pm by Aakash Srivastav
    .a{fill-rule:evenodd;}techdegree
    Aakash Srivastav
    Full Stack JavaScript Techdegree Student 11,638 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Combining Array Methods
    • Combining filter() and reduce()

    3 Answers

  • Madeline Yao
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Madeline Yao
    Full Stack JavaScript Techdegree Student 9,611 Points

    How does the Reduce Method Works to compare different objects' common factor?

    Posted June 20, 2018 2:30am by Madeline Yao
    .a{fill-rule:evenodd;}techdegree
    Madeline Yao
    Full Stack JavaScript Techdegree Student 9,611 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Combining Array Methods
    • Combining filter() and reduce()

    2 Answers

  • Tomas Svojanovsky
    Tomas Svojanovsky
    26,680 Points

    Why should I solve this way?

    Posted November 4, 2017 8:42am by Tomas Svojanovsky
    Tomas Svojanovsky
    26,680 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Combining Array Methods
    • Combining filter() and reduce()

    3 Answers

  • Ivan Molina
    Ivan Molina
    2,870 Points

    whats the purpose of the Spoiled Alert's answer?

    Posted October 30, 2017 2:27pm by Ivan Molina
    Ivan Molina
    2,870 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Combining Array Methods
    • Combining filter() and reduce()

    1 Answer

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