File: sample.js

package info (click to toggle)
uglifyjs 2.8.29-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,952 kB
  • sloc: javascript: 30,233; makefile: 22; sh: 4
file content (14 lines) | stat: -rw-r--r-- 202 bytes parent folder | download | duplicates (10)
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);