title: How to "properly" create a custom object in JavaScript?
body: <p>I wonder about what the best way is to create an JavaScript object that has properties and methods.</p>
  
  <p>I have seen examples where the person used <code>var self = this</code> and then uses <code>self.</code> in all functions to make sure the scope is always correct.</p>
  
  <p>Then I have seen examples of using <code>.prototype</code> to add properties, while others do it inline.</p>
  
  <p>Can someone give me a proper example of a JavaScript object with some properties and methods?</p>