title: "super" keyword cannot access parent property in javascript
body: <pre><code>class Base{
      constructor(val){
          this.val = val;
      }
      basep = 'default1';
      basef(){
          return 2;
      }
  }
  
  class Test1 extends Base{
      constructor(val,name){
          super(val);
          this.name=name;
           
      }
      getp(){
          console.log(this.name,this.val);
          console.log(this.basep); //(in case of proerty) result: 'default1'.  if &quot;this&quot; is changed to &quot;super&quot; ===&gt;  result: undefined
          console.log(super.basef()); //(in case of methods) this and super both work.
      }
  }
  
  test= new Test1(1,3);
  test.getp();
  </code></pre>
  <p>In java 'this' and 'super' worked both fine to get parents property but it seems in javascript only this works.
  why is the difference?</p>