📅  最后修改于: 2022-03-11 15:01:21.945000             🧑  作者: Mango
//For example, we can have functions that create new functions.
function greaterThan(n) {
return m => m > n;
}
let greaterThan10 = greaterThan(10);
console.log(greaterThan10(11));
// → true