Introduction JavaScript is a prototype-based programming style of object-oriented programming in which classes are not present. It can support OOP because it supports inheritance through prototyping as well as properties and methods. Object Oriented Programming in JavaScript is known as prototype-based programming. Creating Class in JavaScript the following syntax is used for declaring a class in JavaScript: function Emp() { alert( 'Emp instantiated' ); } Here Emp can act as a class in JavaScript. The body of Emp acts as a constructor and is called as soon as we create an object of the class. Creating Objects of Emp Class Using the following syntax we can create an object of the Emp class: var Emp1 = new Emp(); As soon as we create an object of the Emp class the constructor will be called. Here the above function Emp would be treated as ...