nerdexam
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)
  • A
    7% (3)
  • B
    73% (30)
  • C
    5% (2)
  • D
    15% (6)

Community Discussion

No community discussion yet for this question.

Full 98-375 Practice