Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote