Not sure I can clear up all of the nuances for you, but this may shed some light:
function myFunction() {
this.value = 0;
}
alert( (new myFunction).value);
Using the new
keyword creates a new 'instance' of myFunction
allowing this
to be used to assign a value from inside the function.