-
Which method is used to get user’s position?
-
- getDirectPosition()
- post()
- getDirection
- getCurrentPosition()
- None of these
Correct Option: D
For getting user’s position we used getCurrentPosition() method. Syntax is navigator.geolocation.getCurrentPosition(showPosition). It is supported by most of the browsers like Chrome, Firefox, Internet Explorer, Opera etc.