Mortgage Calculator using Vanillas JavaScript and ES modules

Solution retrospective
Proud of:
- The FormData used to get the form information
- The toLocaleString() method to give comma format
- The JS code divided into ES Modules
Next time:
- Have a more detailed requirement list
- Optimize the CSS classes
- Separate the JS code into ES modules from the beginning
Challenges:
- How to add prefixes and suffixes to the inputs
- How to structure the input type radio in the form
- Styling the input type submit
- The pseudo-classes were not working
- In the Media Queries the dimensions were not working well
Solutions
- Using table display just for the inputs that had a prefix or suffix
- Use a fieldset
- Changing the input with a button tag
- Reading documentation. The focus pseudo-class only works on focusable elements
- The problem was not the display but the width and height
Any feedback is well received!
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Raul Galicia'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