Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Foo(name, surname, age) {
- this.name = name;
- this.surname = surname;
- this.age = age;
- }
- Foo.prototype = {
- constructor: Foo,
- x: 12,
- y: 13
- };
- var a = new Foo("Philipp", "Plotnikov", 17);
- console.log(a.prototype.constructor.toString())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement