Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Person(firstname, lastname) {
- this.firstname = firstname;
- this.lastname = lastname;
- if (!Person.prototype.getFullname) {
- Person.prototype.getFullname = function () {
- return this.firstname + ' ' + this.lastname;
- };
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement