API FCC weather api undefined values

API FCC weather api undefined values


Here Is my pen https://codepen.io/fotisoikonomou/pen/yaKBkN

for a reason I get the fcc api values undefined…

Please if anyone knows help me


I edited the link because it says the debug view already expired.


The page is displaying the weather (though the temperature only appears when you click the button). Probably a glitch on the API’s part? Or is it something else?


It works for me, i get my weather and location.


Your app works fine for me!


that thing …the temperature is shown only when clicked?


You can copy the code that displays the °C temperature just after you set the °F value. However, this will introduce duplicate code, so you might want to enclose that in a function.

    var fTemp = data.main.temp * 9 / 5 + 32;

      "<h3>The current temperature in " +
      data.name +
      " is: " +
      data.main.temp +

    $('.change').on('change', function() {...});


I found a small mistake with the town. (i went in inspect and censored my location)

Theirs no space between is and town