SHARE
TWEET

Untitled

a guest May 23rd, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var Person = function() {}
  2.  
  3. Person.prototype.getName = function() {
  4.     return this.name
  5. }
  6.  
  7. Person.prototype.setName = function(name) {
  8.     this.name = name;
  9. }
  10.  
  11. Person.prototype.getAge = function() {
  12.     return this.age
  13. }
  14.  
  15. Person.prototype.setAge = function(age) {
  16.     this.age = age;
  17. }
  18.  
  19. module.exports = new Person();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top