Olá.
Sabemos que podemos usar a prototipação em Javascript para simular herança:function Animal() {
this.andar = function() {
alert('Estou andando!');
}
}
function Ave() {
this.voar = function() {
alert('Estou voando!');
}
}
// Ave herda de Animal
Ave.prototype = new Animal();
function Ave() {
this.prototype = new Animal();
}