Function expressions (Anonymous functions)



examples/functions/anonymous_functions.js
"use strict";

var add = function (x, y) {
    var z = x+y;
    return z;
}

console.log(add(2, 3));    // 5