Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript super

class Parent {
  constructor() {}
  method() {}
}
class Child extends Parent {
  constructor() {
    super() // Parent.constructor
    super.method() // Parent.method
  }
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #super
ADD COMMENT
Topic
Name
6+4 =