title: How is this valid javascript, and what purpose does it serve?
body: <p>I was answering a question on quora and encountered something like following:</p>
  
  <pre><code>// if(true)
  {
     var qq = 1;
  }
  </code></pre>
  
  <p>Immediately I fired up chrome and tried the following</p>
  
  <pre><code>{
     var qq = 1;
  }
  </code></pre>
  
  <p>To my surprise no syntax errors. I thought this might be a way to set up a closure without a function, but alas nothing like that is true.</p>
  
  <p>Why is this valid JavaScript? Does this serve some purpose? Are there any issues due to this?</p>