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();
}
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
This does work, but I really would like to use class notation.