Skip to content

Instantly share code, notes, and snippets.

@bhancock96
bhancock96 / zoo.js
Last active December 21, 2015 03:28 — 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(){
class Vehicle
attr_reader :color, :wheels
def initialize(args)
@color = args[:color]
@wheels = 4
end
end
class Car < Vehicle
attr_reader