Instantiating a javascript object and populating its properties in a single line
<p>Is there a way I can do all of this in a constructor?</p>

<pre><code>  obj = new Object();
  obj.city = "A";
  obj.town = "B";
</code></pre>
