Skip to content

Instantly share code, notes, and snippets.

View fab's full-sized avatar

Fab Mackojc fab

  • Melbourne, Australia
View GitHub Profile
@fab
fab / zoo.js
Last active December 16, 2015 22:19 — forked from dbc-challenges/zoo.js
//------------------------------------------------------------------------------------------------------------------
// YOUR CODE: Create your Zoo "object literal" and Animal "constructor" and "prototypes" here.
//------------------------------------------------------------------------------------------------------------------
function Animal(name, legs) {
this.name = name;
this.legs = legs;
}
Animal.prototype.identify = function() {