JavaScript Fundamentals

ECMAScript: JavaScript syntax DOM: Document Object Model BOM: Browser Object Model 1. ECMAScript ECMAScript is a standardized programming language developed by ECMA International (formerly the European Computer Manufacturers Association). It is widely used on the World Wide Web and is often referred to as JavaScript or JScript, although these ...

Posted on Mon, 15 Jun 2026 17:55:34 +0000 by bhanu

JavaScript Fundamentals and Core Concepts

JavaScript Language Overview ECMAScript and JavaScript Relationship ECMAScript serves as the specification standard for JavaScript, while JavaScript represents one implementation of this standard. The distinction arose when Netscape submitted JavaScript to ECMA International for standardization in 1996, leading to the ECMA-262 specification. EC ...

Posted on Mon, 25 May 2026 20:46:26 +0000 by vince251

Understanding Array Iteration Choices in Lodash's compact Implementation

The compact functon in Lodash filters out falsy values (false, null, 0, "", undefined, NaN) from an array and returns a new array containing only truthy elements. Its implementation is minimal yet deliberate—especially in how it iterates. Core Implementation Here's a refactored version of the logic, preserving correctness while renami ...

Posted on Tue, 19 May 2026 18:35:20 +0000 by michaeru

Modern JavaScript Features in ES7 and ES8

ES7 Features Array.prototype.includes() The includes() method determines whether an array contains a specified element, returning true or false. Basic Syntax: const elements = ['x', 'y', 'z']; console.log(elements.includes('x')); // true console.log(elements.includes('w')); // false Specifying Start Index: const letters = ['a', 'b', 'c', 'd']; ...

Posted on Mon, 18 May 2026 11:30:22 +0000 by lookee

Demystifying the Array.prototype.sort Comparator

While patching a legacy Beego dashboard I stumbled on a tiny sorting requirement that refused to cooeprate. The goal sounded trivial: given an array that mixes one-, two- and three-digit integers, keep the global ascending order but push every two-digit value to the tail. const sample = [1, 8, 3, 11, 100, 15, 201]; // expected: [1, 3, 8, 100, 2 ...

Posted on Sun, 17 May 2026 08:30:11 +0000 by dolphinsnot

Navigating Reserved Identifiers Throughout ECMAScript Specifications

Tracking identifier restrictions across JavaScript specifications is essential for writing forward-compatible and backward-safe code. The following overview documents how reserved keywords have evolved from the initial ECMAScript 1 specification through ES2015, highlighting shifts in language design and parsing constraints. ECMAScript 1 (1997) ...

Posted on Wed, 13 May 2026 13:04:03 +0000 by jumphopper