JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://amatiasq.com/fiddle-console.js"></script>
JavaScript
function A() { }
A.prototype.fun = function() {
return "uno";
};
A.prototype.booring = function() {
console.log(this.fun);
conselo.log(A.prototype.fun.call(this));
return "booring";
};
function B() { }
B.prototype = Object.create(A.prototype);
B.prototype.fun = function() {
return "dos";
};
B.prototype.funciona2 = function() {
return "prueba";
};
var b = new B();
console.log(b.fun());
console.log(b.booring());