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

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.