title: javascript: how to access static properties
body: <p>I want to access a static property using an instance. Something like this</p>
  
  <pre><code>function User(){
      console.log('Constructor: property1=' + this.constructor.property1) ;
  }
  User.prototype = {
      test: function() {
          console.log('test: property1=' + this.constructor.property1) ;
      }
  }    
  User.property1 = 10 ;   // STATIC PROPERTY
  
  var inst = new User() ;
  inst.test() ;
  </code></pre>
  
  <p>Here is the same code in a <a href="http://jsfiddle.net/FK9VJ/" rel="noreferrer">jsfiddle</a></p>
  
  <p>In my situation I don't know which class the instance belongs to, so I tried to access the static property using the instance 'constructor' property, without success :(
  Is this possible ? </p>