JavaScript

Optional Parameters in Javascript

2020 Update I wrote this back in 2010, and JavaScript has evolved a lot since. Since ES2015 (ES6) [https://www.ecma-international.org/ecma-262/6.0/#sec-function-definitions], it's far simpler to define