📜  创建回调函数 javascript 代码示例

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

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

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

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