The Geolocation API is used to get the geographical position of a user. Since this can compromise privacy, the position is not available unless the user approves it. The Geolocation API is supported by all major browser. Using the Geolocation API...

Markdown supported · ⌘↵ to post
Swastik Gowda L
Git pull Loneliness Git push Fun
Nice article bro!! there is a spelling mistake in example 1 - console.log(
Longitude: ${position.coords.**logitude**}); it supposed to be longitude not logitude