prototypal_inheritance_problem
by upigilam
JavaScript
// create a prototypal inheritance example
var animal = {
name: "animal",
sayName: function () {
console.log('name :: '+this.name);
},
shoutSound: function () {
console.log('sound ::' + this.sound);
}
}