Skip to main content

Harshal V. LADHE

JavaScript: The Full Guide to Modern Development Logic

Comprehensive resources covering the entire JavaScript ecosystem, from foundational syntax and logic to advanced runtime execution and modern web patterns.

Content tagged javascript

  • Post:Backwards-Compatible JavaScript: Polyfills and Baseline

    Use new JavaScript without breaking older browsers.
    Write backwards-compatible JavaScript: feature detection, safe core-js polyfills, transpiling vs polyfilling, Baseline and browserslist queries.
    Published at:
    Categories:JavaScript
    Estimated reading time:15 min read
  • Snippet:Bytes to Hex and Back with Uint8Array.fromHex() and toHex()

    Convert bytes to hex and back without padStart loops.
    Encode bytes as hex with ES2026's Uint8Array toHex(), decode with fromHex() and setFromHex(), with SHA-256 digests, colours, error cases and a padStart fallback.
    Published at:
    Categories:JavaScript
    Estimated reading time:5 min read
  • Tutorial:Collecting Async Iterables into Arrays with Array.fromAsync()

    Collect any async iterable into an array, one await.
    Use JavaScript's Array.fromAsync() to collect async generators and iterables into an array: mapping, error handling, sequential vs Promise.all, and browser support.
    Published at:
    Categories:JavaScript
    Estimated reading time:9 min read
  • Snippet:Deep Freeze Objects in JavaScript

    Recursively lock every object level for true immutability
    Lock objects and their children immutably — prevent accidental mutations and enforce deep immutability in strict mode.
    Published at:
    Categories:JavaScript
    Estimated reading time:3 min read
  • Snippet:Encapsulation with Closures

    Encapsulate private variables using JavaScript closure patterns.
    Master the functional approach to data encapsulation in JavaScript by leveraging lexical scoping to create immutable private variables.
    Published at:
    Categories:JavaScript
    Estimated reading time:3 min read