One of my recent projects is to successfully get the temperature to convert from Fahrenheit to Celsius. However, I have run into a problem that gives me an undefined value when I click my button. Should I be referring to the temperature value that I have requested from my API? I believe that my conversion within my weather function isn’t running when I call it. Here’s my codepen.
Look at your console and you will currently see at least 3 errors you need to fix. Once you fix those, respond back with further questions.
Also, do you really need two calls to the following in your code?
$(document).ready(function(){