title: Why is JavaScript prototype property undefined on new objects?
body: <p>I'm fairly new to the concept of JavaScript's prototype concept. </p>
  
  <p>Considering the following code : </p>
  
  <pre><code>var x = function func(){
  }
  
  x.prototype.log = function() {
    console.log("1");
  }
  
  var b = new x();
  </code></pre>
  
  <p>As I understand it, <code>b.log()</code> should return 1 since <code>x</code> is its prototype. But why is the property <code>b.prototype</code> undefined?</p>
  
  <p>Isn't <code>b.prototype</code> supposed to return the reference to the <code>x</code> function?</p>