Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Which property is like the GPS in car?

a) watchPosition()
b) clearWatch()
c) getCurrentPosition()
d) showPosition()

Answer: a
Explanation: Current position of the user is returned by watchPosition(). It update the position os th user as the user moves just like the GPS installed in a car. WatchPosition() method is stopped by clearWatch() method. E.g. if(navigator.geolocation){navigator.watchPosition(showPosition);}

Join The Discussion