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

    Confusion. . . 😵‍💫 Why is my daysOverDue property negative?

    Posted on Feb 28, 2023 by Samuel Kleos
    .a{fill-rule:evenodd;}techdegree
    Samuel Kleos
    Front End Web Development Techdegree Student 13,728 Points
    • JavaScript
    • Practice Object Interaction
    • Checking Out and Returning a Book
    • Solution: Charging Fines to Patrons

    1 Answer

  • Seth Missiaen
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Seth Missiaen
    Web Development Techdegree Graduate 21,652 Points

    Is the content inside "this.patrons.filter()" an arrow function?

    Posted on Mar 23, 2022 by Seth Missiaen
    .a{fill-rule:evenodd;}techdegree seal-36
    Seth Missiaen
    Web Development Techdegree Graduate 21,652 Points
    • JavaScript
    • Practice Object Interaction
    • Checking Out and Returning a Book
    • Solution: Charging Fines to Patrons

    1 Answer

  • Xun Huang
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Xun Huang
    Web Development Techdegree Graduate 18,515 Points

    WHY 'patron.balance += this.dailyFine * daysLate' ???

    Posted on Mar 3, 2022 by Xun Huang
    .a{fill-rule:evenodd;}techdegree seal-36
    Xun Huang
    Web Development Techdegree Graduate 18,515 Points
    • JavaScript
    • Practice Object Interaction
    • Checking Out and Returning a Book
    • Solution: Charging Fines to Patrons

    1 Answer

  • Johannes Deutsch
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Johannes Deutsch
    Full Stack JavaScript Techdegree Graduate 19,869 Points

    now

    Posted on Nov 26, 2021 by Johannes Deutsch
    .a{fill-rule:evenodd;}techdegree seal-36
    Johannes Deutsch
    Full Stack JavaScript Techdegree Graduate 19,869 Points
    • JavaScript
    • Practice Object Interaction
    • Checking Out and Returning a Book
    • Solution: Charging Fines to Patrons

    2 Answers

  • Farid Lavizadeh
    Farid Lavizadeh
    12,006 Points

    DayLate can't be correct.

    Posted on Aug 18, 2020 by Farid Lavizadeh
    Farid Lavizadeh
    12,006 Points
    • JavaScript
    • Practice Object Interaction
    • Checking Out and Returning a Book
    • Solution: Charging Fines to Patrons

    3 Answers

  • Brendan Moran
    Brendan Moran
    14,052 Points

    Is it ok to use a method to get a state *IF* I never, ever want to set that state?

    Posted on Jul 28, 2020 by Brendan Moran
    Brendan Moran
    14,052 Points
    • JavaScript
    • Practice Object Interaction
    • Checking Out and Returning a Book
    • Solution: Charging Fines to Patrons

    1 Answer

  • Faraz Khalid
    Faraz Khalid
    4,077 Points

    Practice Object Interaction

    Posted on Apr 21, 2020 by Faraz Khalid
    Faraz Khalid
    4,077 Points
    • JavaScript
    • Practice Object Interaction
    • Checking Out and Returning a Book
    • Solution: Charging Fines to Patrons

    1 Answer

  • Michael Cook
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Michael Cook
    Full Stack JavaScript Techdegree Graduate 28,975 Points

    My chargeFines method

    Posted on Dec 1, 2019 by Michael Cook
    .a{fill-rule:evenodd;}techdegree seal-36
    Michael Cook
    Full Stack JavaScript Techdegree Graduate 28,975 Points
    • JavaScript
    • Practice Object Interaction
    • Checking Out and Returning a Book
    • Solution: Charging Fines to Patrons

    1 Answer

  • Okle Odai
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Okle Odai
    Full Stack JavaScript Techdegree Student 10,816 Points

    How do I approach this challenge? My attempt was completely off from the actual solution.

    Posted on Nov 22, 2019 by Okle Odai
    .a{fill-rule:evenodd;}techdegree
    Okle Odai
    Full Stack JavaScript Techdegree Student 10,816 Points
    • JavaScript
    • Practice Object Interaction
    • Checking Out and Returning a Book
    • Solution: Charging Fines to Patrons

    1 Answer

  • fairest
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    fairest
    Full Stack JavaScript Techdegree Graduate 19,303 Points

    Why would you first let us figure the chargeFines() function if the solution isn't really a solution?

    Posted on Nov 16, 2019 by fairest
    .a{fill-rule:evenodd;}techdegree seal-36
    fairest
    Full Stack JavaScript Techdegree Graduate 19,303 Points
    • JavaScript
    • Practice Object Interaction
    • Checking Out and Returning a Book
    • Solution: Charging Fines to Patrons

    0 Answers

  • Dan Ingenthron
    Dan Ingenthron
    8,769 Points

    Is the code meant to charge the same fine for each day the book is late?

    Posted on Nov 16, 2019 by Dan Ingenthron
    Dan Ingenthron
    8,769 Points
    • JavaScript
    • Practice Object Interaction
    • Checking Out and Returning a Book
    • Solution: Charging Fines to Patrons

    1 Answer

  • Juneau Lim
    Juneau Lim
    13,362 Points

    Where can I learn/practice functions like filter?

    Posted on May 23, 2019 by Juneau Lim
    Juneau Lim
    13,362 Points
    • JavaScript
    • Practice Object Interaction
    • Checking Out and Returning a Book
    • Solution: Charging Fines to Patrons

    2 Answers

  • Muhammad Umar
    Muhammad Umar
    7,817 Points

    Using Console.log on const dateDiff gives the date Wed Jan 14 1970 18:00:00 GMT-0600 (Central Standard Time) ??

    Posted on May 14, 2019 by Muhammad Umar
    Muhammad Umar
    7,817 Points
    • JavaScript
    • Practice Object Interaction
    • Checking Out and Returning a Book
    • Solution: Charging Fines to Patrons

    2 Answers

  • Muhammad Umar
    Muhammad Umar
    7,817 Points

    Help: chargeFines() What would happen if this method was called more than once while a patron had the same book overdue?

    Posted on Apr 21, 2019 by Muhammad Umar
    Muhammad Umar
    7,817 Points
    • JavaScript
    • Practice Object Interaction
    • Checking Out and Returning a Book
    • Solution: Charging Fines to Patrons

    4 Answers

  • gerardo keys
    gerardo keys
    14,292 Points

    I don't understand parts of the chargeFines method.

    Posted on Apr 16, 2019 by gerardo keys
    gerardo keys
    14,292 Points
    • JavaScript
    • Practice Object Interaction
    • Checking Out and Returning a Book
    • Solution: Charging Fines to Patrons

    3 Answers

  • Nicholas Wallen
    Nicholas Wallen
    12,278 Points

    This part doesn't make sense to me. Can someone explain?

    Posted on Feb 15, 2019 by Nicholas Wallen
    Nicholas Wallen
    12,278 Points
    • JavaScript
    • Practice Object Interaction
    • Checking Out and Returning a Book
    • Solution: Charging Fines to Patrons

    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.