1.

Which method is used to get user’s position?(a) getCurrentPosition()(b) getDirectPosition()(c) post()(d) getDirectionThis question was addressed to me in a job interview.I'm obligated to ask this question of Geolocation API topic in chapter HTML Fonts, Tags and Elements of HTML

Answer»

Right option is (a) GETCURRENTPOSITION()

The explanation is: For getting user’s position we USED getCurrentPosition() method. Syntax is navigator.geolocation.getCurrentPosition(showPosition). It is supported by most of the BROWSERS like Chrome, Firefox, INTERNET EXPLORER, Opera etc.



Discussion

No Comment Found

Related InterviewSolutions