Unable to define my lat and lon variables

Unable to define my lat and lon variables
0

#1

here is my link to my codepen weather api


how can i define my lat and lon variables from the function inside the getJSON function


#2

You want to set a fixed value to lat and lon or you want to take those values from the user?


#3

when a user visits my page i want his computer to set the values for the lat and lon variables


#4

Try to read this documentation from Mozilla Developer Network and let me know if you have any problems with it!