title: Is it possible to call constructor function method without creating object in JS?
body: <p>I am not sure about differences between object literal and constructor function.</p>
  
  <pre class="lang-javascript prettyprint-override"><code>function user() {
      this.name="john"
      this.getName=function (){
          return this.name;
      };
  }
  
  var johnUser=new user();
  console.log(johnUser.getName()); // Will console john
  </code></pre>
  
  <p>What if I want to call <code>getName</code> without creating any objects something like in Java static method/function?</p>
  
  <p>If I can add</p>
  
  <pre class="lang-javascript prettyprint-override"><code>user.sayName=function() {
      console.log("Hey there");
  }
  
  console.log(user.sayName()); //will console Hey there.
  </code></pre>
  
  <p>How I can access constructor function properties?</p>