This is intended as a grab bag of tips, shortcuts, reference and otherwise useful information related to JavaScript (and Node.js).
Bind is a very useful tool for changing the scope of this
within functions as well as passing in parameters:
function log(msg) {
console.log(msg);
}
var logger = log.bind(this, 'Hello World');
logger(); //=> 'Hello World'