Local Weather App Stuck with onClick Only Working Once

Hi All,

I almost have all of the functionality of my Local Weather App done, but I am so stuck on toggling between Celsius and Fahrenheit. I’ve got it so that when you click on the temperature, it will toggle from F to C, but it won’t change anymore after that. Help please!

There are a couple of things I see.

  1. You’ll want to make sure you’re connecting to CodePen via HTTPS. The link you shared is insecure, via HTTP. Like this:
  1. On line 42
if (unit === unit)

unit will always equal unit.