Creating and assigning values to deeply nested objects
<pre><code>var obj={
    one:{
        two:{
            three:{
            }
        }
    }
};

function test(){
obj.one=1;
obj.one.two=2;
obj.one.two.three=3;

alert(obj.one);
alert(obj.one.two);
alert(obj.one.two.three);
}
</code></pre>

<p>Could someone explain what I am doing wrong and give me a corrected example to go by? </p>
