I was reading through this thread: Hidden Features of JavaScript? and found this post: Hidden Features of JavaScript?
I was playing around with the code in firebug and I found that this bit of code seems to work fine:
var fn = function(x) {
console.log(this.foo);
}
fn.foo = 1;
How come I can access the property of the function before it's assigned?