title: ES 6 compund statements holder
body: <p>I am not sure if this is already possible in ES5, if not is there any change in ES6; is there any way to assign compound statements to a <strong>thing</strong>?</p>
  
  <p>That would help it can be used anywhere that JavaScript expects a single statement.</p>
  
  <p>like:</p>
  
  <pre><code>var leftValue = {
      x = Math.PI;
      cx = Math.cos(x);
      alert("cos(" + x + ") = " + cx);
  }
  //it wouldn't work
  </code></pre>