Constructors in javascript
<p>how to declare parameterized constructors in JavaScript?? How it can be achieved in JavaScript?? </p>

<pre><code> public class A()
    {
     //variable declaration
     public A()
     {
      //do something
     }

     public A(int a)
     {
      //do something
     }

     public A(int a,int b)
     {
      //do something
     }
    }
</code></pre>
