1.

What does showPosition() returns?(a) only latitude(b) only longitude(c) both latitude and longitude(d) directionI have been asked this question during an interview.I'd like to ask this question from Geolocation API topic in chapter HTML Fonts, Tags and Elements of HTML

Answer»

Right choice is (c) both latitude and longitude

The explanation: showPosition() METHOD returns both latitude and longitude of USER. Syntax is navigator.geolocation.getCurrentPosition(showPosition); The value of latitude and longitude returned will be in DECIMAL.



Discussion

No Comment Found

Related InterviewSolutions