Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 1 year ago

Mortgage repayment calculator

ianwilk20•450
@ianwilk20
A solution to the Mortgage repayment calculator challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

I'm most proud of the input customizations that I implemented. That was probably one of the most challenging parts of the challenge for me.

Next time I will have the experience of what I did this time and be better equipped to solve something similar.

What challenges did you encounter, and how did you overcome them?

Early on I was faced with the problem of how to format the monthly payment or total repayment so that it would have commas where they are commonly put in monetary amounts. I knew there were functions to do this like .toLocaleString() or a .replace() regex expression could be used, but I guess I wanted a bit of a challenge. So I broke apart the problem into its most fundamental parts, tried lots of things that didn't work and eventually led me to learn how to format any monetary amount.

What specific areas of your project would you like help with?

Any feedback is welcome!

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on ianwilk20's solution.

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License