JavaScript Inheritance

JavaScript

var para = "<p>tdgfnhyft</p>"
  
  var extendedControl = function(controlName){
    var self = this;
    self.html = controlName;
  }
  
  Control.extend = function(ChildClass, ParentClass) {
    ChildClass.prototype = ParentClass;
    ChildClass.prototype.super = ParentClass.constructor;
    ChildClass.prototype.constructor = ChildClass;
  };
  Control.extend(extendedControl(para), rootControl);