You are reading a single comment by @llakie and its replies. Click here to read the full conversation.
  • This does work, but I really would like to use class notation.

    var A = function() {};
    
    var B = function() {
      A.call(this);
    };
    B.prototype = Object.create(A.prototype);
    B.prototype.constructor = B;
    
    var C = function() {
      B.call(this);
    };
    
    C.prototype = Object.create(B.prototype);
    C.prototype.constructor = C;
    
    function onInit() {
      const c = new C();
    }
    
About

Avatar for llakie @llakie started