I’m not really proud of the js on this one. Some questions I have:
- How should I organize my code when using asynchronous functions? I ended up shoving almost all my logic into one bloated function (which is why the entire page reloads whenever the user wants to switch from celsius to fahrenheit. I’m sure there’s a better way to do it, but I really want to move on).
- Is there a way I can return or store data from an asynchronous function?
- Is it bad practice to generate some of your html/css within your js?