JavaScript

Functions

function square(x) {
        return x * x;
}
var square = function (x) {return x*x};
square(5);
var plusone = function (x) {return x+1};
var doublef = function (f,x) {return f(f(x))};
doublef(plusone,5)

José M. Vidal .

11 of 65