Your query for articles tagged “const” yielded some results!
Variables declared using
const
are not immutableUsing
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 5Let’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
andconst
as new flavors of variable declaration, are they better signals thanvar
?10m 21ES6 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