How to "properly" create a custom object in JavaScript?
<p>I'm still trying to understand JavaScript, and I wonder about what the best way is to create an object that has properties and methods.</p>

<p>I have seen examples where the person used "var self = this" and then uses "self." in all functions to make sure the scope is always correct.</p>

<p>Then I have seen examples of using .prototype 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>

<p>Thanks!</p>
