📜  如何在 javascript 代码示例中创建返回函数

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

代码示例1
An Example of a return function
function add15(number) {
    let newNumber = number + 15;
    return newNumber;
}
let fifteen = add15(5);
console.log(fifteen);