Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.Person5 = function(firstName, lastName) {
- return _({}).tap(function(self){
- self.firstName = firstName;
- self.lastName = lastName;
- self.fullName = function() {
- return self.firstName + " " + self.lastName;
- };
- // any scope-hidden ("private") vars can go here.
- });
- };
Add Comment
Please, Sign In to add comment