Properties of __proto__ in Javascript : <p>I have the below code</p>

<pre><code>var person={
    firstname:"Geet",
    getFullName:function(){
        return this.firstname;
    }
}

var test={
    firstname:"Test"
}

test.__proto__=person;
for (var prop in test){
    console.log(prop + ': '+test[prop]);
}
</code></pre>

<p>Output:-</p>

<pre><code> firstname: Test
 getFullName: function (){
     return this.firstname;
 }
</code></pre>

<p>How the chain stops there. Why it does not print the properties of <strong>proto</strong> Object of person.How is this handled.</p>
