📜  js 中的回调 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:18.428000             🧑  作者: Mango

代码示例3
const add = (num1, num2) => num1 + num2;

const result = (num1, num2, cb) => {
  return "result is:" + cb(num1, num2);
}

const res = result(12, 13, add);