98-375 · Question #69
When you are using the GeoLocation API, which two arguments does the getCurrentPosition function utilize? (Choose two.)
The correct answer is D. ip address E. failure callback. E: The getCurrentPosition() method returns an object if it is successful. The latitude, longitude and accuracy properties are always returned. The second parameter of the getCurrentPosition() method is used to handle errors. It specifies a function to run if it fails to get the…
Question
When you are using the GeoLocation API, which two arguments does the getCurrentPosition function utilize? (Choose two.)
Options
- Asuccess callback
- BMAC address
- Cbrowser type
- Dip address
- Efailure callback
How the community answered
(70 responses)- A16% (11)
- B4% (3)
- C7% (5)
- D73% (51)
Explanation
E: The getCurrentPosition() method returns an object if it is successful. The latitude, longitude and accuracy properties are always returned. The second parameter of the getCurrentPosition() method is used to handle errors. It specifies a function to run if it fails to get the user's location. - The HTML5 Geolocation API is used to get the geographical position of a user. - The getCurrentPosition() method returns an object if it is successful. The latitude, longitude and accuracy properties are always returned.
Topics
Community Discussion
No community discussion yet for this question.