MCPcopy Create free account
hub / github.com/AyushSaini00/60minuteJavaScript / setPosition

Function setPosition

Weather-app/app.js:36–42  ·  view source on GitHub ↗
(position)

Source from the content-addressed store, hash-verified

34
35//Setting user's location
36function setPosition(position) {
37 let myLatitude = position.coords.latitude;
38 let myLongitude = position.coords.longitude;
39
40 // console.log(myLongitude, myLatitude);
41 getWeather(myLatitude, myLongitude);
42}
43
44//GET WEATHER
45

Callers

nothing calls this directly

Calls 1

getWeatherFunction · 0.85

Tested by

no test coverage detected