title: alternative way of passing argument to parent class
body: <p>hello what's the alternative way of passing arguments to the parent class other than passing the arguments using the super() method like the following</p>
  
  <pre><code>class food () {
     constructor (name) {
        this. name = name;
     }
  }
  
  class junkfood extends food {
     constructor () {
        super();
        // no args
        this.type = "bad"
     }
  }
  
  var breakfast = new junkfood('pizza')
  </code></pre>
  
  <p>currently am using the following</p>
  
  <pre><code>class food () {
     constructor (name) {
        this. name = name;
     }
  }
  
  class junkfood extends food {
     constructor (name) {
        super(name);
        this.type = "bad"
     }
  }
  
  var breakfast = new junkfood('pizza')
  </code></pre>
  
  <p>as seen above I don't want junk food to associate with food name argument</p>