JavaScript Inheritance
JavaScript supports inheritance, which allows us, when creating new types of objects, if necessary, ...
JavaScript Function as an object. call and apply methods
In JavaScript, a function is also an object – a Function object and also has a prototype, prop...
JavaScript Encapsulation
Encapsulation is one of the key concepts of object-oriented programming and represents hiding the st...
Object extension.prototype
In addition to directly defining properties and methods in the constructor, we can also use the prot...
JavaScript Object constructors
In addition to creating new objects, JavaScript gives us the ability to create new types of objects ...
JavaScript Objects in functions
Functions can return values. But these values do not have to represent primitive data – ...
Existence check and enumeration of methods and properties
When dynamically defining new properties and methods in an object, it can be important to check whet...
JavaScript Copying and comparing objects
Copying objects Unlike primitive data types, object data is copied by reference. What does it mean? ...
JavaScript Nested objects and arrays in objects
Some objects can contain other objects as properties. For example, there is a country object that ca...
JavaScript Objects
Object-oriented programming is one of the dominant paradigms in application development today, and i...