Body Mass Index Calculator

Solution retrospective
If anyone has time to offer suggestions with my JS that would be great. I think the calculator works fine. I think my logic is okay, but I wonder if I could have simplified things.
I want to organize the JS code a little better. I'm trying to avoid "spaghetti code" or not repeating myself.
I converted my user inputs to numbers before doing calculations. Should I convert back to string when updating innerContent?
Please log in to post a comment
Log in with GitHubCommunity feedback
- @arogersrenee
updated my JavaScript. Added functions to calculate the healthy weight ranges.
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