Skip to content

Instantly share code, notes, and snippets.

View high-performance-learning-references.md
View zoo.js
//------------------------------------------------------------------------------------------------------------------
// YOUR CODE: Create your Zoo "object literal" and Animal "constructor" and "prototypes" here.
//------------------------------------------------------------------------------------------------------------------
function Animal ( name, num_of_legs ) {
this.name = name;
this.num_of_legs = num_of_legs;
}
Animal.prototype.identify = function() {