Skip to content

Instantly share code, notes, and snippets.

function Animal() {
this.name = 'I am a generic Animal';
}
function Cat() {
this.name = 'Cat'
this.sound = 'purr';
}
Cat.prototype = new Animal();