Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. class A {
  2. constructor() {
  3. console.log('constructor instance class', new.target.name);
  4. }
  5. }
  6.  
  7. class B extends A {
  8.  
  9. constructor() {
  10. super();
  11. }
  12. }
  13.  
  14. new B();
  15.  
  16. // Output
  17. // constructor instance class B
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement