1.

What does getCurrentPosition() returns?(a) latitude(b) longitude(c) direction(d) coordinatesI got this question in an online interview.My question is based upon Geolocation API topic in chapter HTML Fonts, Tags and Elements of HTML

Answer»

The correct ANSWER is (d) coordinates

Explanation: Coordinates of object is return by GETCURRENTPOSITION() method. getCurrentPosition() function accepts three parameters i.e. SUCCESS, position and ERROR. When data is fetched successfully success callback will be invoked. Lagitude, longitude, DIRECTION etc are the properties to be returned.



Discussion

No Comment Found

Related InterviewSolutions