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.