title: how to implement regions/code collapse in javascript
body: <p>How can you implement regions a.k.a. code collapse for JavaScript in Visual Studio?</p>
  
  <p>If there are hundreds of lines in javascript, it'll be more understandable using code folding with regions as in vb/C#. </p>
  
  <pre><code>#region My Code
  
  #endregion
  </code></pre>