Object-Oriented Programming (OOP) is a programming paradigm that focuses on creating reusable and modular code by using objects, classes, and inheritance. JavaScript supports OOP concepts, and here are some key concepts of OOP in JavaScript: Here’s an example of how…