title: Can I add numbers using JavaScript Closures?
body: <p>How can I create a closure function, that sums all passed arguments, like <em>this</em>?</p>
  
  <pre><code>Add(2)(2) //4
  Add(2)(2)(3) // 7
  Add(3)(2)(3)(0) // 8
  
  
  function Add(number){
    return function(number1){
      return function(number2){
        return  number+number1+number2;
      }
    }
  }
  alert(Add(2)(2)(2));
  </code></pre>
  
  <p>I wanted a generalized way to achieve this.</p>