title: Why is this prototype field taking precedence over the same object field?
body: <p>I'm in the process of learning Javascript prototypes and trying to understand why this is happening. It's my understanding that when looking for the value of a property, the object is checked before any prototype. When then, does this print "brown"?</p>
  
  <pre><code>function Box(item) {
      this.item = item;
  }
  
  Box.prototype.color = "brown";
  Box.color = "blue";
  
  var box = new Box(null);
  console.log(box.color);
  
  &gt;&gt;&gt; brown
  </code></pre>