title: Uncaught SyntaxError: Unexpected token } vb.net
body: <p>When I debug my code in Google Chrome, I have a red text saying  </p>
  
  <blockquote>
    <p>Uncaught SyntaxError: Unexpected token }.</p>
  </blockquote>
  
  <p>I don't understand why and where this is coming from. This is the code from the source console:</p>
  
  <pre><code>var chart = $('#container1').highcharts();chart.series[0].setData(array2);chart.redraw(); });    //]]&gt;
  </code></pre>
  
  <ul>
  <li><p>Uncaught SyntaxError: Unexpected token }</p>
  
  <pre><code>&lt;/script&gt;
  </code></pre></li>
  </ul>
  
  <p>Code in vb.net</p>
  
  <pre><code>Dim script As String
      script = _
          "var chart = $('#container1').highcharts();" &amp; _
          '"chart.series[0].setData(array2);" &amp; _
          "chart.redraw();" &amp; _
      " }); "
  
  
      ScriptManager.RegisterClientScriptBlock( _
          Me, _
          GetType(Page), _
          "container1", _
          script, _
          True)
  </code></pre>
  
  <p>i have a Uncaught SyntaxError: Unexpected token }, ub tge vb.net code</p>
  
  <p>updated code:</p>
  
  <pre><code>   Dim script As String
  script = _
      "var chart = $('#container1').highcharts();" &amp; _
      "chart.series[0].setData(array2);" &amp; _
      "chart.redraw();" &amp; _
   "}" &amp; _
   ")" &amp; _
   ";"
  </code></pre>
  
  <p>error:</p>
  
  <pre><code> var chart = $('#container1').highcharts();chart.series[0].setData(array2);chart.redraw(); });//]]&gt;
  Uncaught SyntaxError: Unexpected token }
  &lt;/script&gt;
  </code></pre>