Join 36000+ teachers and students using TTIO.
Geolocation is most accurate for devices with GPS, like the smartphone. The HTML Geolocation API is used to locate a user's position. Since this can compromise privacy, the position is not available unless the user approves it.
You can learn more about JavaScript and Geolocation using the following links. Do read through them and try coding some examples for yourself before doing this test.
W3Schools Geolocation: https://www.w3schools.com/html/html5_geolocation.asp
Homeandlearn Geolocation https://www.homeandlearn.co.uk/javascript/javascript_and_geolocation.html
Google developer's API - useful link - try it yourself
https://developers.google.com/maps/documentation/javascript/examples/map-geolocation
Youtube Video
www.teachyourselfpython.com