✨ 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 Array Iteration Methods
    • Combining Array Methods
    • Combining filter() and reduce()
    • Close
  • 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 on Feb 25, 2023 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 on Dec 9, 2022 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 on Nov 29, 2022 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 on Feb 22, 2022 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 on Aug 11, 2021 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 on Dec 8, 2020 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 on Sep 9, 2019 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 on Apr 23, 2019 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 on Feb 1, 2019 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 on Aug 29, 2018 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 on Jul 31, 2018 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 on Jun 20, 2018 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 on Nov 4, 2017 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 on Oct 30, 2017 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.