Skip to content

Instantly share code, notes, and snippets.

//------------------------------------------------------------------------------------------------------------------
// 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() {