_________ Function displays the latitude or Longitude in geoLocation in HTML5.
Correct answer
B. showPosition()
14 views
B. showPosition()
14 views
showPosition() is the callback function conventionally used with the HTML5 Geolocation API to display latitude and longitude. It is passed to navigator.geolocation.getCurrentPosition(showPosition) and reads position.coords.latitude and position.coords.longitude.
The name comes from the widely used tutorial example; technically any function name will work.
Practise more Computer Science MCQs with answers and explanations on MCQsExam.com.
Not sure why the answer is B? Ask here and get an explanation.