myFunction is a function object. You can pass it around, assigned it to variables, assign properties to it and you can call it.
Assigning properties works like with any other object:
myFunction.value = 0;
But note that at this point, you have not called the function yet, so the code inside the function (var value = 0; or this.value = 0;) was not even executed yet. Consider this:
function someFunction() {
window.foo = 'foo'; // create a global variable
}
someFunction.bar = 'bar';
console.log(someFunction.bar); // 'bar'
console.log(window.foo); // undefined
someFunction(); // execute the function
console.log(someFunction.bar); // 'bar'
console.log(window.foo); // 'foo'
When you execute the function with myFunction(), only then the local variable is created / a property is set on this. What this refers to depends on how the function is called and is well explained in the MDN documentation. this never refers to the function itself unless you explicitly set it so.