Long story short. I am working on a simple app that will send/retrieve data to an API and return the proper information based on a users location (how im gonna get that is a different story).
I am looking to find the best way to build this. I know I will have my HTML file with a JS file say:
on click -> send this data -> print on the screen from an API.
But as this grows and gets larger, is there a more appropriate way of doing this over than a JS full of events and functions calling an API
Any suggestions or tips to do this "correctly" - I guess I dont know if having a HTML file with events/ and functions calling an API is "messy" or a framework to do it all.