Stuck On Show the Local Weather project

Hi!
My work Show the Local Weather project is stopped

step 1
I would like replace my gps coord latitude & longitude to variable
var apisrc = “https://fcc-weather-api.glitch.me/api/current?lat=” + latitude + “&” + “lon=” + longitude;

with standard function from MDN


var latitude="";
var longitude="";

function geoFindMe (){
    if (!navigator.geolocation){
        console.log("Geolocation is not supported by your browser");

    }

    function success(position) {
         latitude  = position.coords.latitude;
         longitude = position.coords.longitude;
        console.log('Latitude is ' + latitude + 'Longitude is ' + longitude )
    };

     function error() {
        console.log("Unable to retrieve your location")
    };



    navigator.geolocation.getCurrentPosition(success, error)
}

geoFindMe();

// does not work properly :(
console.log('latitude is '+latitude+'longitude is '+ longitude)


But geoFindMe() does not work properly.

Help me please.

replce

with

"

at this line

console.log(“Geolocation is not supported by your browser”);

I found workaround . Almost done