Is there a way I can do all of this in a constructor?
obj = new Object(); obj.city = \"A\"; obj.town = \"B\";
Like so:
var obj = { city: "a", town: "b" }