Best way to retrieve the prototype of a JS object <p>Trying to understand Prototypes in Javascript. For this example:</p> <pre><code>var obj = new Function(); obj.prototype.x = "a"; </code></pre> <p>Why do I get different results from </p> <pre><code>console.log(obj.__proto__); </code></pre> <p>and </p> <pre><code>console.log(obj.prototype); </code></pre> <p>Thanks</p>