I’ve used the geolocation data from the free code camp challenges, but don’t know what to do with it. I’ve tried storing the values, but as soon as I try to call them I get the below errors. Am I using the wrong jQuery CDN or something?
I’m still not sure what to do once I sort it though. Ultimately, I’m just trying to get the relevant pieces of JSON data to show in each div (wind speed, humidity, degrees etc). I’m finding it hard to understand the data from the API. Does the data update with weather once I put the on & lat variables into the code somehow?
Apologies if its not clear enough in what I’m after. I’ve been working on this for a few hours now and not really getting anywhere.
jquery.min.js:2 jQuery.Deferred exception: position is not defined ReferenceError: position is not defined at HTMLDocument.<anonymous> (http://127.0.0.1:8080/public/App.js:11:12) at j (https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:2:29999) at k (https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:2:30313) undefined r.Deferred.exceptionHook @ jquery.min.js:2 k @ jquery.min.js:2 setTimeout (async) (anonymous) @ jquery.min.js:2 i @ jquery.min.js:2 fireWith @ jquery.min.js:2 fire @ jquery.min.js:2 i @ jquery.min.js:2 fireWith @ jquery.min.js:2 ready @ jquery.min.js:2 S @ jquery.min.js:3 jquery.min.js:2 Uncaught ReferenceError: position is not defined at HTMLDocument.<anonymous> (App.js:11) at j (jquery.min.js:2) at k (jquery.min.js:2)