const add = function(x) {
return function(y) {
return x + y + 3
}
}
const add = x => y => x+y+3
const res = add(2)(4)
console.log('res is', res)
const add = function(x) {
return function(y) {
return x + y + 3
}
}
const add = x => y => x+y+3
const res = add(2)(4)
console.log('res is', res)