Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Person(name) {
- this.name = name;
- }
- var person = new Person("Ang Lee")
- console.log("the prototype of person is", Object.getPrototypeOf(person));
- function Person(name) {
- this.name = name;
- this.foo = function() { ... }
- }
- Person.bar = function() { ... }
- "getPrototypeOf" in Object.prototype; // false
Add Comment
Please, Sign In to add comment