title: When is a CDATA section necessary within a script tag?
body: <p>Are <strong>CDATA</strong> tags ever necessary in script tags and if so when?</p>
  
  <p>In other words, when and where is this:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  //&lt;![CDATA[
  ...code...
  //]]&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>preferable to this:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  ...code...
  &lt;/script&gt;
  </code></pre>