#17 JavaScript Tutorial | Introduction to Objects p.1

Sdílet
Vložit
  • čas přidán 5. 07. 2024
  • JavaScript is an Object Oriented Programming (OOP) language. A programming language can be called object-oriented if it provides four basic capabilities to developers −
    Encapsulation − the capability to store related information, whether data or methods, together in an object.
    Aggregation − the capability to store one object inside another object.
    Inheritance − the capability of a class to rely upon another class (or number of classes) for some of its properties and methods.
    Polymorphism − the capability to write one function or method that works in a variety of different ways.
    Objects are composed of attributes. If an attribute contains a function, it is considered to be a method of the object, otherwise the attribute is considered a property.
    Loosely speaking, objects in JavaScript may be defined as an unordered collection of related data, of primitive or reference types, in the form of “key:value” pairs. These keys can be variables or functions and are called properties and methods, respectively, in the context of an object.
    Video by - Tanmay Sakpal
    Simple Snippets Channel link - / simplesnippets
  • Věda a technologie

Komentáře • 112