-
What does showPosition() returns?
-
- direction
- only latitude
- only longitude
- both latitude and longitude
- None of these
Correct Option: D
showPosition() method returns both latitude and longitude of user. Syntax is navigator.geolocation.getCurrentPosition(showPosition); The value of latitude and longitude returned will be in decimal.