How to define a class in Javascript
<p>I want to create a class in Javascript. 
This class should have </p>

<ol>
<li>private and public variables and functions.</li>
<li>static and dynamic variables and functions.</li>
</ol>

<p>How this can be done ?</p>
