Here is what i'm trying to do:
$.getJSON( "http://api.openweathermap.org/data/2.5/weather?lat="+latitude+"&lon="+longitude", function(data) {
fh = data;
});
I'm trying to do a
console.log(fh);
outside $.getJSON
Is it possible to get the fh var outside this function ? I'm trying this and shows me an error at the console:
Uncaught ReferenceError: fh is not defined