I want to make this syntax possible:
var a = add(2)(3); //5
based on what I read at http://dmitry.baranovskiy.com/post/31797647
I\
function A(a){ return function B(b){ return a+b; } }
I found a nice explanation for this type of method. It is known as Syntax of Closures
please refer this link Syntax of Closures