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