I’m struggling with my Weather Machine project. It’s almost done, but I can’t create working button to switch between metric and imperial units. I think it’s something about functions scope, because everything works nice separately, but doesn’t want to run together.
Here’s my Pen: https://codepen.io/mmicalt/pen/WZWyOx?editors=0011
each function is described, I believe that issue is between getTemp() function and ‘#switch’ button event handler.
I know the solution will probably be really simple, but I’m still missing it