Home » HTML » HTML APIs » Question
  1. What does showPosition() returns?
    1. direction
    2. only latitude
    3. only longitude
    4. both latitude and longitude
    5. 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.



Your comments will be displayed only after manual approval.