Guest User

Untitled

a guest
Jan 17th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. function Person(name) {
  2. this.name = name;
  3. }
  4.  
  5. var person = new Person("Ang Lee")
  6.  
  7. console.log("the prototype of person is", Object.getPrototypeOf(person));
  8.  
  9. function Person(name) {
  10. this.name = name;
  11. this.foo = function() { ... }
  12. }
  13.  
  14. Person.bar = function() { ... }
  15.  
  16. "getPrototypeOf" in Object.prototype; // false
Add Comment
Please, Sign In to add comment