title: Using google maps API, how can we set the current location as the default set location using map.setCenter function?
body: <p>I am writing JavaScript code using Google Maps API.</p>
  
  <pre><code>map = new google.maps.Map2(document.getElementById("map_canvas"));
  map.setCenter(new google.maps.LatLng(37.4419, -122.1419), 13);
  </code></pre>
  
  <p>The above code sets the default location of the map canvas to Palo Alto. </p>
  
  <p>How can we write the script in such a way that the setCenter function automatically points to the current location of the client?</p>