How can I make var a = add(2)(3); //5 work??

I want to make this syntax possible: var a = add(2)(3); //5 based on what I read at http://dmitry.baranovskiy.co...

How can I make var a = add(2)(3); //5 work??

I want to make this syntax possible: var a = add(2)(3); //5 based on what I read at http://dmitry.baranovskiy.co...