Microsoft
98-375 · Question #28
You create an instance named "location" of a geolocation object. Which code fragment will initiate periodic updates of a device's geographic location?
The correct answer is B. location.watchPosition(showLocation). See the full explanation below for the reasoning.
Question
You create an instance named "location" of a geolocation object. Which code fragment will initiate periodic updates of a device's geographic location?
Options
- Alocation = navigator.geolocation;
- Blocation.watchPosition(showLocation) ;
- Clocation.getCurrentPosition(showLocation);
- Dlocation.clearNatch(watchid);
How the community answered
(41 responses)- A7% (3)
- B73% (30)
- C5% (2)
- D15% (6)
Community Discussion
No community discussion yet for this question.