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
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.