Object-Oriented Programming in ES6 JavaScript
Object-Oriented Programming
ES6 Classes and Objects
Objects
In the real world, everything can be considered an object - a concrete entity that can be seen and touched. For instance, a book, a car, or a person can be objects. Similarly, a database connection, a web page, or a server connection can also be treated as objects.
Objects consist of p ...
Posted on Wed, 13 May 2026 16:36:22 +0000 by gemmerz
Block Scoping and Constants in JavaScript ES6: let and const
The let Declaration
Basic Usage
The let keyword introduces block-scoped variables. Unlike var, variables declared with let are not accessible outside their containing block.
// Example with var
{
var globalVar = 'leaks';
}
console.log(globalVar); // Outputs: leaks
// Example with let
{
let blockScoped = 'does not leak';
}
console.log(block ...
Posted on Sun, 10 May 2026 22:47:34 +0000 by Adam W
Converting Array-Like Objects to Standard Arrays in JavaScript
Array-like objects are frequently encountered in JavaScript development. Technically known as pseudo-arrays, they possess specific characteristics that mimic arrays without fully behaving like them.
The core definition of a pseudo-array includes:
An object structure.
A numeric length property.
Numeric keys that allow iteration.
However, these ...
Posted on Sat, 09 May 2026 13:41:27 +0000 by itaym02