Guest User

Untitled

a guest
Nov 17th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. function Person(name) {
  2. this.name = name;
  3. }
  4.  
  5. Person.prototype.showName = function() {
  6. alert(this.name);
  7. }
  8.  
  9. var person = new Person();
  10.  
  11. person.showName();
Add Comment
Please, Sign In to add comment