Namingjsconstant.md - brainchildservices/curriculum GitHub Wiki
Slide 1
Naming Constant
ES6 introduced the declaration const
which isn’t a “constant” in the purest sense.
ES6 added the terms const
and let
as ways to create variables with different intentions.
With those two terms, you may think that we either:
- don’t need to capitalize anything since we can clearly see which variables are intended to remain the same
- we should capitalize everything that we declare with
const
.