Javascript Object Composing
===

I'm wondering what the difference, or if any, the following JS is for building up an object. Is it a style thing/standards thing? If so, which is most common?

Example 1:

<pre>
var MyNamspace = {
  options: { test: 10 },
  someFunction: function() { alert("Hello"); }
}
</pre>

Example 2:

<pre>
var MyNamespace = {};
MyNamespace.options = { test: 10 };
MyNamespace.someFunction = function() { alert("Hello"); }
</pre>

Thanks.