title: javascript geocode latlng variable
body: <p>JAVASCRIPT</p>
  
  <p>Im sure this a very simple problem.</p>
  
  <p>I am modifying the line below and want to replace (53, 0) with a variable.  However, the variable that is created called 'result', is equal to '(34, 2)', ie it already has the brackets around it.</p>
  
  <pre><code>center: new google.maps.LatLng.(53, 0)
  </code></pre>
  
  <p>i have tried</p>
  
  <pre><code>center: new google.maps.LatLng.(result)
  center: new google.maps.LatLng.result
  center: new google.maps.LatLng.({result})
  </code></pre>
  
  <p>and it no working!</p>
  
  <p>FULL CODE</p>
  
  <p>var geocoder = new google.maps.Geocoder();</p>
  
  <pre><code>  if (geocoder) {
       geocoder.geocode({ 'address': address }, function (results, status) {
          if (status == google.maps.GeocoderStatus.OK) {
  
            window.result = results[0].geometry.location;
  
            alert(result);
  
  
  
          } 
          else {
            alert('nothing');
          }
       });
    }
  
    function load() {
  
      map = new google.maps.Map(document.getElementById("map"), {
      center: new google.maps.LatLng.(53, 0),
      zoom: 10,
      mapTypeId: 'roadmap',
      mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.DROPDOWN_MENU}
    });
  </code></pre>
  
  <p>}</p>
  
  <p>For reference, alert(result) returns</p>
  
  <p>(53.8622017, -2.405405999999971)</p>