Object-Oriented JavaScript Interview Questions – Object-Oriented JavaScript Online Quiz

Question 1:  Which of the following is used to create an object in JavaScript?

Question 2:  In JavaScript, what does the this keyword refer to inside a method?

Question 3:  What is prototypal inheritance in JavaScript?

Question 4:  How can you define a class in modern JavaScript?

Question 5:  Which method is used to call a parent class constructor in a subclass?

Question 6:  What does the constructor method do in a JavaScript class?

Question 7:  How do you add a method to an object’s prototype?

Question 8:  Which keyword is used to create an instance of a class?

Question 9:  Which of the following is true about JavaScript inheritance?

Question 10:  What is encapsulation in Object-Oriented JavaScript?

Leave a Reply