Why does this particular JavaScript code work this way?
<pre><code>var my_obj = Object.create({}, {
    getFoo: {
        value: function() {
            return this.foo;
        }
    }
});
my_obj.foo = 1;

alert(my_obj.getFoo());
</code></pre>

<p>Why is <code>getFoo</code> the function instead of <code>value</code>?</p>
