Syntax of inheritance:
Class whose properties are accessing in another class is called as super class or base class or parent class.
Class which accessing properties of another class is called as sub class or derived class or child class
document.getElementById(‘result’).innerHTML=”We are in calling function”;
class Vivo extends Mobile
}const object=new Vivo(); //child class object creation