JavaScript 函数柯里化(Curry)

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)