Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

extends in js

The extends keyword is used to create a child class of another class (parent). 
The child class inherits all the methods from another class. Inheritance is 
useful for code reusability: reuse properties and methods of an existing class 
when you create a new class.
 
PREVIOUS NEXT
Tagged: #extends #js
ADD COMMENT
Topic
Name
4+8 =