JavaScript is an Object Oriented Programming language (OOP). An Object is a special kind of data and acts like real –life objects. An object has properties and methods. A real-life example for object could be a music system. It has properties like, on, off, current volume, etc. The methods could be said as, turn on, turn off, increase volume, etc. Similarly, JavaScript objects do have properties and methods.
Comments closed