Advertisement
PlotnikovPhilipp

Untitled

Jun 5th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. function Foo(name, surname, age) {
  2. this.name = name;
  3. this.surname = surname;
  4. this.age = age;
  5. }
  6.  
  7. Foo.prototype = {
  8. constructor: Foo,
  9. x: 12,
  10. y: 13
  11. };
  12.  
  13. var a = new Foo("Philipp", "Plotnikov", 17);
  14. console.log(a.prototype.constructor.toString())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement