Explain class and inheritance in js?



Explain class and inheritance in js?..

Answer / Rananjay Pratap Singh

In JavaScript, classes define blueprints for objects (also known as constructors in older versions). Classes can have properties and methods, which are inherited by their instances. Inheritance allows one class to derive properties and methods from another class, creating a hierarchy of related classes. This is achieved through prototypal inheritance in JavaScript.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What is event target value?

1 Answers  


What's new in httpclient and httpclientmodule in angular?

1 Answers  


What is currency filter in angularjs?

1 Answers  


Give an example for Rootscope in AngularJS?

1 Answers  


How do I increase my webpack speed?

1 Answers  


Explain the concept of scope.

1 Answers  


What is the need of angular 2?

1 Answers  


What is the difference between `{'ngfor'}` and `{`ngforof`}` in angular 2?

1 Answers  


Do I need angular?

1 Answers  


Why are decorators used in angular 2?

1 Answers  


How do you define a module?

1 Answers  


What components can be defined within AngularJS modules?

1 Answers  


Categories