Function expressions are like lambda functions in other languages.
var sum = function(a, b) { return a + b; } var s = sum(5, 2);