Calling method of object
<p>I have the following object:</p>

<pre><code>​var x = {
    y: '33', 
    z: '88', 
    m: function() {
        alert('this is the m element');
    }
};

x.newObject = function() {
    alert('mm'); 

    function click(myval) {
        alert('you have select the click function' + myval); 
    }
};

x.newObject.click('clickme'); ​​​​​​​​​// This is what I have tried; it's not working. 
</code></pre>

<p>How can I call the click function of <code>newObject</code>?</p>

<p><a href="http://jsfiddle.net/minagabriel/XQu2j/3/" rel="nofollow">jsFiddle</a> </p>
