weather.js
//this function callbacks the lat, long values to the getLocation function

this function callbacks the lat, long values to the getLocation function
this function callbacks the lat long values to the getLocation function
function userPosition(position)
    {
        const lat = position.coords.latitude;
        const long = position.coords.longitude;
        callback(lat, long);
    }
function userPosition ( position ) { const lat = position . coords . latitude ; const long = position . coords . longitude ; callback ( lat , long ) ; }
this function callbacks the lat, long values to the getLocation function
this function callbacks the lat long values to the getLocation function