📜  js 回调函数 - Javascript 代码示例

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

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

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

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