How am I supposed to create an Object in Javascript
<p>Thanks in advance, and sorry for being such a newb :)</p>

<p>I'm so confused. I am reading a few different books at once (probably not a good idea) and each tells me to a create a class in a different way.</p>

<p>I can tell you the way I prefer, at least for readability  is:</p>

<pre><code>    var myObject = {

        property1 : "1",
        property2 : "2",

        combine : function(){
            return this.property1 + this.property2;
        }
    }
</code></pre>

<p>But I have seen other ways.</p>

<p>I just want an up to date answer, and please keep it simple I'm totally new to this and you will lose me if you go overboard with the explanation.</p>
