JS: Good parts - Ch.4 - Functions
Function definition
JavaScript
/*
All texts and infos I have taken from:
'JavaScript: The Good Parts' by Douglas Crockford
*/
// function literal
var add = function add (a, b) {
return a + b;
};
// functions receive two additional parameters: this and arguments