🤑 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

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

    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.