I hope you can help me with my weather app. I am doing things in stages really, and instead of going all out putting all the data points on my page, I am working with one data point (forecasted temperature) and a basic toggle switch to try and get the switch between units to work. Link to CodePent is below:
What I have done at the moment is loaded the the initial call first to the api for Celsius data (which displays content), and then I have added an if statement to toggle between Celsius and Fahrenheit. Is there a better way of doing this? If so what would kind of method would you suggest? This is so I have something to go on when doing more research into cleaning up my code and writing it better.