OOPS in Javascript

 OOPS in Javascript

In this article we are goanna to see about OOPS in Javascript and where we use these. which is most important when you are going to start your career in JavaScript. Please ready and enjoy this article if you want to give any feedback about your experience, we welcome.



Object-oriented programming(OOP) is a programming language model organized around objects rather than “actions” and data rather than logic. Procedural programming is about writing procedures or methods that perform operations on the data, while object-oriented programming is about creating objects that contain both data and methods.

Object-oriented programming has several advantages over procedural programming:

1. OOP is faster and easier to execute

2. OOP provides a clear structure for the programs

3. OOP helps to keep the code DRY "Don't Repeat Yourself", and makes the code easier

     to maintain, modify and debug

4. OOP makes it possible to create full reusable applications with less code and shorter 

    development time

Classes and Objects

Classes and objects are the two main aspects of object-oriented programming.

Ex:

Class :- Fruits

Object:- Apple, Mango, Banana


Share:

0 comments

Please leave your comments...... Thanks