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

mortgage-repayment-calculator-solution

Lucas Sena•80
@1IMperaDOR0
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 proud of being able to do another challenge. This one was more complex to do than the first one I did. But I believe that it also evolves in the organization and structuring of codes. What would I do differently? I think I would study algorithmic logic more, so that I wouldn't get too stuck in these parts, but other than that, I think I did well.

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

I had problems with error styling of the inputs. It took a lot of time, but I discovered that the mistake I was making was selecting them wrong, which I solved using input.closest('.exempleClass'). I also had difficulty building the mortgage calculation validation, which only contained numbers and periods, in addition to displaying the results with commas and periods. But I also managed to solve it.

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

I wanted help understanding how to make the code clean and easy to understand. I think I got confused when it came to clarifying the code. And what could I have done to simplify the code or used different things to get a better result. In short, feedback on the codes.

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 Lucas Sena'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