HTML5 Application Development Fundamentals — Question 5
When you are using the GeoLocation API, which two arguments does the getCurrentPosition function utilize? (Choose two.)
Answer options
- A. success callback
- B. MAC address
- C. browser type
- D. ip address
- E. failure callback
Correct answer: D, E
Explanation
The correct options are D and E because the getCurrentPosition function requires a success callback to handle successful retrieval of the location and a failure callback for handling errors. Options A, B, and C are not relevant as the function does not utilize those arguments.