Help with "Show the Local Weather" app and converting temperature

Help with "Show the Local Weather" app and converting temperature
0.0 0

#1

I’m working on the Show the Local Weather challenge, and have pretty much everything done except for the conversion from Fahrenheit to Celsius. I like the idea of having a toggle switch to change between the two, so I tried to adapt the one on w3. This is just newest way I’ve tried to do this and can’t seem to get past this user story. Here is a link to the codepen. https://codepen.io/SteveTucci/pen/rvadrQ


#2

I’ve realized if I change my checkbox input to checked in my html that the page will load the converted temp, but I still can’t figure out how to make that happen when the checkbox is checked. Can someone point me in the right direction?

edit: I figured it out. Looks like I just needed to use .addEventListener() instead of onclick=""

Seems like just writing out the question eventually lead me to the answer.