arogersrenee• 330
@arogersrenee
Posted
updated my JavaScript. Added functions to calculate the healthy weight ranges.
0
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?
@arogersrenee
Posted
updated my JavaScript. Added functions to calculate the healthy weight ranges.
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