a) getCurrentPosition()
b) getDirectPosition()
c) post()
d) getDirection
Answer: a
Explanation: 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.
Related Posts
What is -Xms and -Xmx while starting jvm?
Which of the following is a garbage collection technique?
Where is a new object allocated memory?
Which of the following has the highest memory requirement?
What would be behaviour if the constructor has a return type?
What would be the behaviour if one parameterized constructor is explicitly defined?
What is not the use of “this” keyword in Java?
Join The Discussion