Home »
MCQs »
ReactJS MCQs
In ES6 – What is the correct syntax of class inheritance?
19. In ES6 – What is the correct syntax of class inheritance?
- class class1 extends class2{...}
- class class1 extends | class2{...}
- class class1 | extends class2{...}
- class class1 | extends | class2{...}
Answer: A) class class1 extends class2{...}
Explanation:
In ES6 – The correct syntax of class inheritance is:
class class1 extends class2{...}