blob: 32068cb2ee0843f742eff79405b6f01eb7024949 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
function f(x) {
return function() {
function n(a) {
return a * a;
}
return x(n);
};
}
function g(op) {
return op(1) + op(2);
}
console.log(f(g)() == 5);
|