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.

    2m 5
  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?

    10m 21
  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 …

    14m 11