function Foo(firstName){ this.firstName = firstName; } Foo.prototype.myName = function(){ return this.firstName; } function Bar(firstName, lastName){ Foo.ca