title: Calling a method in a Javascript Constructor and Accessing Its Variables
body: <p>I am trying to call a method from the constructor of my javascript constructor, is this possible and if so, I can't seem to get it working, any insight would be great! Thanks!</p>
  
  <pre><code>function ValidateFields(pFormID){
      var aForm = document.getElementById(pFormID);
      this.errArray = new Array();//error tracker
      this.CreateErrorList();
  }
  /*
   * CreateErrorList()
   * Creates a list of errors:
   *   &lt;ul id="form-errors"&gt;
   *    &lt;li&gt;
   *     You must provide an email.
   *    &lt;/li&gt;
   *   &lt;/ul&gt;
   * returns nothing
   */
   ValidateFields.prototype.CreateErrorList = function(formstatid){
       console.log("Create Error List");
   }
  </code></pre>
  
  <p>I got it to work with what is above, but I can't seem to access the 'errArray' variable in CreateErrorList function.</p>