title: How can I make var a = add(2)(3); //5 work?
body: <p>I want to make this syntax possible: </p>
  
  <pre><code>var a = add(2)(3); //5
  </code></pre>
  
  <p>based on what I read at <a href="http://dmitry.baranovskiy.com/post/31797647" rel="noreferrer">http://dmitry.baranovskiy.com/post/31797647</a></p>
  
  <p>I've got no clue how to make it possible.</p>