title: Is there any difference in writing javascript in a single script block or multiple blocks
body: <p>Is there any difference in writing javascript in a single script block or in individual blocks?</p>
  
  <p><strong>Writing script in a single block</strong></p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function funcA(){
  //do something
  }
  
  function funcB(){
  //do something
  }
  &lt;/script&gt;
  </code></pre>
  
  <p><strong>Writing script in a different block</strong></p>
  
  <p><em>Block 1:</em></p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function funcA(){
  //do something
  }
  &lt;/script&gt;
  </code></pre>
  
  <p><em>Block 2:</em></p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function funcB(){
  //do something
  }
  &lt;/script&gt;
  </code></pre>