JS var function
<p>Please take a look at following code:</p>

<pre><code>var test = {

    test2 : {
        variable: 'hello world',

        test3: {
            test4 : test.test2.variable  
        },

        echo : function() {
            alert(test.test2.test3.test4);   
        }
    }

};

test.test2.echo();
</code></pre>

<p><a href="http://jsfiddle.net/RUgA4/" rel="nofollow">jsfiddle</a></p>

<p>Why can't test4 access the variable:</p>

<pre><code>test4 : test.test2.variable 
</code></pre>

<p>Please feel also free to modify my title, I couldn't find a better one.</p>

<p>Thank you!</p>
