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

📅  最后修改于: 2022-03-11 15:04:16.659000             🧑  作者: 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);