title: Uncaught TypeError: this.element.val is not a function error
body: <p>could someone help me to solve this error? I rly don't know where I am doing a mistake. I'm new to either JavaScript or OOP, so thanks for your help guys.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>Test.prototype.testing= function() {
      var oneDate= new Date();
      var anotherDate= new Date(this.element.val());
      return oneDate.getTime() &lt; anotherDate.getTime();
  }
  </code></pre>
  
  <p>I'm receiving this error on line 3:</p>
  
  <blockquote>
    <p>Uncaught TypeError: this.element.val is not a function.</p>
  </blockquote>