title: Unexpected token operator «=», expected punc «,»
body: <p>i am getting the following error</p>
  
  <blockquote>
    <p>Parse error: Unexpected token operator «=», expected punc «,» Line
    159, column 26</p>
  </blockquote>
  
  <p>This is my code</p>
  
  <pre><code>  function fitBounds(type="all", shape=null) {
      var bounds = new google.maps.LatLngBounds();
  
      if ( type == "all" ){
        if ((circles.length &gt; 0) | (polygons.length &gt; 0)){
          $.each(circles, function(index, circle){
            bounds.union(circle.getBounds());
          });
          $.each(polygons, function(index, polygon){
            polygon.getPath().getArray().forEach(function(latLng){
              bounds.extend(latLng);
            });
          });
        }
      }
      else if ( (type == "single") &amp;&amp; (shape != null) ) {
        if (shape.type == google.maps.drawing.OverlayType.MARKER) {
          marker_index = markers.indexOf(shape);
          bounds.union(circles[marker_index].getBounds());
        }
        else {
          shape.getPath().getArray().forEach(function(latLng){
            bounds.extend(latLng);
          });
        }
      }
  
      if (bounds.isEmpty() != true)
      {
        map.fitBounds(bounds);
      }
    }
  </code></pre>