nerdexam
Microsoft

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…

Understanding JavaScript

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)
  • A
    16% (11)
  • B
    4% (3)
  • C
    7% (5)
  • D
    73% (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

#Geolocation API#getCurrentPosition#callbacks#error handling

Community Discussion

No community discussion yet for this question.

Full 98-375 Practice