JS geolocation API

Hi guys,been working on how to display google maps on a website using JS.Be happy if you can be of assistance,thanks.

Please can you explain?