Understanding Objects
Going through Javascript Enlightenment
by dbelle
JavaScript
var Fish = function(family, latName, color){
this.family = family;
this.latName = latName;
this.color = color;
this.getFamily = function() {return this.family};
}
var molly = new Fish(livebearer, );