javascript function call with 2 sets of parentheses code example
Example: Two sets of parentheses after function call
function add(x){
return function(y){
return x + y;
};
}
var addTwo = add(2);
addTwo(4) === 6; // true
add(3)(4) === 7; // true