SHARE
TWEET

Untitled

a guest Oct 14th, 2019 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top