logo image Faisal Rahman
ID EN

JavaScript (11 posts)


  1. Type Narrowing Techniques in TypeScript

    Type narrowing techniques can resolve the dilemma between type flexibility with union types and type certainty when processing them.

    • Archive
    • JavaScript
    • TypeScript
    • Machine Translated

  2. Optional Chaining in JavaScript

    This time we will dive deeper into the Optional Chaining operator introduced in ES2020, covering the motivation, syntax, and use-case examples.

    • Archive
    • JavaScript
    • Tech
    • Machine Translated

  3. Working with Nullability in JavaScript: Objects and Question Mark Operators

    Nullish values require special attention when working with objects. ES2020 introduced optional chaining and nullish coalescing to handle this.

    • Archive
    • JavaScript
    • Machine Translated

  4. Working with Nullability in JavaScript: Variables and Functions

    Like many other programming languages, JavaScript has indicators of absence: null and undefined. What should we pay attention to about them?

    • Archive
    • JavaScript
    • Tech
    • Machine Translated

  5. Arrays Can Do That?

    Arrays in JavaScript are a fascinating thing. Arrays have many interesting and very useful prototype methods. What are they?

    • Archive
    • JavaScript
    • Machine Translated

  6. A New Way to Iterate in ES6 with Iterables and Iterators

    ES6 introduced a new concept called protocols, with its first two being: Iterable and Iterator, which we can use to power up our iteration.

    • Archive
    • Tech
    • JavaScript
    • Machine Translated

  7. Quirks of the Number Type and toString in Javascript?

    When the number data type, weak typing, and primitive type coercion meet, they produce wonders. Wonders, in the sense of confusing phenomena.

    • Archive
    • JavaScript
    • Machine Translated

  8. Destructuring Assignment in JavaScript

    Learning about destructuring assignment in JavaScript, a feature introduced by ES6, which improves readability and shortens code.

    • Archive
    • JavaScript
    • Machine Translated

  9. Talking About Undefined, Null, Not Defined, and Undeclared

    In Javascript, there are several terms that sound superficially similar: undefined, null, not defined, and undeclared. See the differences here.

    • Archive
    • JavaScript
    • Machine Translated

  10. IIFE-Based Modules

    > Good authors divide their books into chapters; good programmers divide their programs into modules. Linguistically, a module can be defined as a self-contained component of a system that supports the program of that system...

    • Archive
    • JavaScript
    • Machine Translated

  11. Immediately-Invoked Function Expression (IIFE) and Its Motivation

    The use of global variables in Javascript is strongly discouraged for many reasons [1]. Two of the main reasons are the difficulty of controlling access to resources available to the entire application...

    • Archive
    • JavaScript
    • Machine Translated