Skip to content

Instantly share code, notes, and snippets.

View pycarlson's full-sized avatar

Paulette Carlson pycarlson

  • Kantata
  • San Francisco Bay Area
View GitHub Profile
Zoo = {
init: function(animals) {
this.animals = animals;
},
bipeds: function() {
bipeds = [];
for (var i in this.animals) {
if (this.animals[i].num_legs === 2)
bipeds.push(this.animals[i]);
//------------------------------------------------------------------------------------------------------------------
// YOUR CODE: Create your Zoo "object literal" and Animal "constructor" and "prototypes" here.
//------------------------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------------------------
// DRIVER CODE: Do **NOT** change anything below this point. Your task is to implement code above to make this work.
//------------------------------------------------------------------------------------------------------------------
@pycarlson
pycarlson / carousel.js
Created March 24, 2014 17:08 — forked from ksolo/carousel.js
Image Carousel