function add(a){
 return function(b){
   return a + b;
};
}
//arrow function
const add2 = a => b => a + b; // (a,b) => a + b
add(1)(5); //add(a,b)