Hello fellow campers,
I am developing the code for showing the local weather. The code, I am writing is working neither in my codepen account or from my local browser. I think, for me the “geolocation” is not working. However, I think it’s not the problem of the browser as I tried similar codes from w3schools, freeCodeCamp exercise under “JSON API and AJAX” and some other sites. Everywhere their code is working from my browser. I even pasted similar code in my codepen but still not working. Executing code from other sites (including free code camp),
for the above line the browser asks for permission however my codepen application doesn’t ask anything. Here is my codepen link,
Can anyone please help me figure out what I am missing ? Do I need to add any other library ? Your help is much appreciated.