Code-JS
All articles Topics TutorialsNEW AI JS Angular TS RxJS
Skip to content
Search

JavaScript ES2024+ Features Worth Using (and What to Skip)

Leave a Comment / Javascript / Code-JS

Modern JS syntax cheat sheet: ES2023 immutable array methods (toSorted, toReversed, findLast), ES2024 Object.groupBy + Promise.withResolvers, ES2025 iterator helpers + Set arithmetic, what to use today vs wait on. Plus the 2026 best-practice style guide.

JavaScript ES2024+ Features Worth Using (and What to Skip) Read More »

JavaScript Higher-Order Functions and Composition: pipe() and compose()

Leave a Comment / Javascript / Code-JS

Higher-order functions take or return functions — the foundation of map/filter/reduce, pipe/compose, partial application, and currying. With production patterns: API shaping pipelines, middleware, React HOCs, RxJS operators, and async composition.

JavaScript Higher-Order Functions and Composition: pipe() and compose() Read More »

JavaScript Pure Functions and Side Effects: The Gateway to Functional JS

Leave a Comment / Javascript / Code-JS

A pure function is deterministic + side-effect-free. Why purity makes code testable, memoizable, parallelizable, and easy to reason about. The functional-core / imperative-shell pattern, immutability, the reference-vs-value trap, and when impurity is OK.

JavaScript Pure Functions and Side Effects: The Gateway to Functional JS Read More »

JavaScript Iterators and Generators: Building Lazy Sequences

Leave a Comment / Javascript / Code-JS

JavaScript’s iterator protocol (next() returning { value, done }) and Symbol.iterator make for…of work. Generators (function*) build iterators from paused function bodies — lazy sequences, infinite ranges, paginated APIs, and async streams in plain JS.

JavaScript Iterators and Generators: Building Lazy Sequences Read More »

JavaScript Symbols Explained: The Identifier Type Almost No One Uses

Leave a Comment / Javascript / Code-JS

Symbols are JavaScript’s 7th primitive — guaranteed-unique values usable as object keys, hidden from Object.keys/for-in/JSON. Well-known Symbols power iterators, coercion hints, instanceof, and toStringTag. When to use Symbols vs strings.

JavaScript Symbols Explained: The Identifier Type Almost No One Uses Read More »

JavaScript Inheritance Patterns: Classes vs Composition vs Mixins

Leave a Comment / Javascript / Code-JS

Three JS inheritance patterns: class extends for true IS-A hierarchies, composition (the default — wins most of the time), and mixins as class factories for orthogonal cross-cutting concerns. When each works, when each hurts, and why “favor composition” is gospel.

JavaScript Inheritance Patterns: Classes vs Composition vs Mixins Read More »

JavaScript Prototypes and the Prototype Chain Explained (with `class` Decoded)

Leave a Comment / Javascript / Code-JS

JavaScript is prototype-based wearing a class costume. How [[Prototype]] works, the chain lookup, Object.create vs new, how `class` decompiles to constructor + prototype, super, static methods, and the performance pitfalls of mutating prototypes.

JavaScript Prototypes and the Prototype Chain Explained (with `class` Decoded) Read More »

JavaScript Error Handling Patterns: try/catch, Result Types, and async/await

Leave a Comment / Javascript / Code-JS

try/catch only catches synchronous throws inside the try block. Async callbacks, uncaught promises, and event handlers all need different patterns. Custom Error subclasses, the Result type, Error.cause, Promise.allSettled, and the global safety nets you must install.

JavaScript Error Handling Patterns: try/catch, Result Types, and async/await Read More »

JavaScript WeakMap, WeakSet, and WeakRef: When Regular Maps Hold On Forever

Leave a Comment / Javascript / Code-JS

WeakMap, WeakSet, and WeakRef let you reference objects without keeping them alive. Restrictions, use cases (DOM annotation, private fields, soft caches, cycle detection), why iteration is forbidden, and why the spec says to use WeakRef sparingly.

JavaScript WeakMap, WeakSet, and WeakRef: When Regular Maps Hold On Forever Read More »

JavaScript Memory and Garbage Collection: Why Your SPA Leaks

Leave a Comment / Javascript / Code-JS

How V8’s generational mark-and-sweep collector actually works, the 4 classic leak patterns in SPAs (forgotten listeners, over-capturing closures, unbounded caches, detached DOM), and how to find a real leak with Chrome DevTools heap snapshot comparison.

JavaScript Memory and Garbage Collection: Why Your SPA Leaks Read More »

← Previous 1 … 9 10 11 … 16 Next →
  • About Us
  • About Us
  • AI & Model Context Protocol
  • All Articles
  • Angular
  • Angular Blogs
  • Blog
  • Contact
  • Contact Us
  • JavaScript
  • Javascript Blogs
  • Modern Angular Tutorial
    • Module 10: Debugging & Real-World Problem Solving
    • Module 11: Testing
    • Module 12: AI × Angular
    • Module 13: Animations
    • Module 1: Angular Foundations
    • Module 2: Components & Templates
    • Module 3: Signals & Reactivity
    • Module 4: Forms & User Input
    • Module 5: Routing
    • Module 6: HTTP & Data
    • Module 7: RxJS in Modern Angular
    • Module 8: CSR Performance
    • Module 9: SSR Performance
  • Modern JavaScript Tutorial
    • Module 10: Advanced JavaScript
    • Module 11: Beyond-DOM Browser APIs
    • Module 1: JavaScript Foundations
    • Module 2: Functions Deep Dive
    • Module 3: Objects, Arrays & Iteration
    • Module 4: Classes & OOP
    • Module 5: Asynchronous JavaScript
    • Module 6: Modern JS Internals
    • Module 7: Browser & DOM
    • Module 8: Standard Library Deep Dive
    • Module 9: Regular Expressions
  • Modern JavaScript, Angular, RxJS & TypeScript Tutorials
  • Page Not Found
  • Page Not Found
  • privacy Policy
  • RxJS
  • Tags
  • Terms and Conditions
  • Topics
  • Tutorials
  • TypeScript
  • Typescript Blogs
Subscribe
Subscribe
Code-JS

Hands-on, code-first tutorials on JavaScript, Angular, RxJS, and Model Context Protocol. Built for working engineers — every example runs.

in ▶ RSS
Topics
  • AI & MCP
  • JavaScript
  • Angular
  • RxJS
  • TypeScript
Site
  • Home
  • All Articles
  • Topics Hub
  • Tags
  • RSS Feed
  • Sitemap