At the moment, I have been able to request temperature from DarkSky’s API, but degrees are in Fahrenheit when displayed on the user’s screen. Consequently, I was wondering if could wrap my existing JS code with that button so that I could convert from Celsius to Fahrenheit and vise-versa? Perhaps I need to wrap the my temperature id in a button and use a function of some sort?
Here’s my codepen: https://codepen.io/baquino1994/pen/ayJOod?editors=1011