I\'m having a problem that I would greatly appreciate getting help in. Currently
ID: 3867262 • Letter: I
Question
I'm having a problem that I would greatly appreciate getting help in. Currently, I am trying to get the temperature and minutes displayed in my div, but for some reason, it's not popping up. What's odd is that using the same API, I have only been able to get the longitude and latitude to display itself but not the temperature and minutes that is also in my Javascript. Below is a copy of my code in codepen. I would greatly appreciate any help in getting the values to display itself in my div
Code in link.
https://codepen.io/baquino1994/pen/ayJOod
Explanation / Answer
Your spelling for longitude is wrong in JS file, in the line:
var theUrl = url +apiKey + "/"+ latitude+","+ longtitude +"?callback=?";
Fixing the spelling will enable you to see the temperature.
However, the JSON data I recieved from the callback from this URL did not contain a block named "minutely", i.e. there is no data from the API itself regarding "minutely".
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.