11.
What is the output of console.log(person.greet()); if var person = {greet: function() {return 'Hello';}};?
12.
How do you define a constructor function for creating Car objects?
13.
How do you create an instance of the Car object using the constructor function?
14.
How do you add a method to an object created with a constructor function?
15.
What is the purpose of the this keyword in a constructor function?
16.
How do you define a class in JavaScript ES6?
17.
How do you define a method inside a class in JavaScript ES6?
18.
How do you inherit properties and methods from another class in JavaScript ES6?
19.
What will console.log(newCar.make); output if class Car { constructor(make) { this.make = make; }} var newCar = new Car('Honda');?
20.
How do you call a method from a parent class in a subclass in JavaScript ES6?