How to assign object inside another object
<p>Below is the function that does some stuff.</p>

<pre><code>ns.Line2Point = function (params) {
        points = params.points;
        // code here
};
</code></pre>

<p>In the code above, <code>params object</code> contains a <code>points object</code>. So, when I want to call <code>Line2Point</code> method, I must create a object, and it contain points object. But, I don't know how to in Javascript. I just have some ideas like the code below, but don't know it true or false:</p>

<pre><code>    var params;
    var points;
    // some code to initialize for points object
    params.points = points
    ns.Line2Point(params)
</code></pre>

<p>Please teach me this. Thanks :)</p>
