ponyfoo.com

Your query for articles tagged “const” yielded some results!

  1. Variables declared using const are not immutable

    Using const only means that the variable will always have a reference to the same object or primitive value, because that reference can’t change.

    Read full article
    2 minute read
  2. Let’s use const! Here’s why.

    When reading a piece of code, others can take cues from these signals in order to better understand what we did. ES6 offers let and const as new flavors of variable declaration, are they better signals than var?

    Read full article
    10 minute read
  3. ES6 Let, Const and the “Temporal Dead Zone” (TDZ) in Depth

    This is yet another edition of ES6 in Depth. First time here? Welcome! So far we covered destructuring, template literals, arrow functions, the spread operator and rest …

    Read full article
    14 minute read