Javascript nested class
<p>How do I define nested class in Java Script. </p>

<p>Here is the code snippet I have:</p>

<pre><code>objA = new TestA();

function TestB ()
{
   this.testPrint = function ()
  {
     print ( " Inside testPrint " );
  }
}

function TestA ()
{
   var myObjB = new TestB();
}
</code></pre>

<p>Now I am trying to access testPrint using objA</p>

<pre><code>objA.myObjB.testPrint();
</code></pre>

<p>But its giving error "objA has no properties"</p>

<p>How can I access testB method using objA handler?</p>
