Blog posts filed under “Objects”
- Properties and methods in JavaScript
- Loop through an object using the Object.keys() method
- Not everything is an object in JavaScript
- Delegated event handlers using object methods
- Three ways to check if an object has a property in JavaScript
- Object.hasOwn() versus Object.prototype.hasOwnProperty()
- The .prototype property versus the [[Prototype]] internal slot in JavaScript
- Four ways to set the prototype of an object in JavaScript
- Subclassing with prototypes in JavaScript
- Extending constructors in JavaScript
- The super keyword in object literals
- An alternative to the super keyword in JavaScript
- Property descriptors in JavaScript
- Three ways to prevent changes to an object in JavaScript
- Method definitions versus function properties in JavaScript
- Encapsulation in object-oriented JavaScript (OOJS)
- Referential equality in JavaScript
- Grouping array elements in JavaScript
- Making objects iterable in JavaScript
- Async iterables in JavaScript