letconst
Letconst is an informal term used in JavaScript discussions to describe the practice of choosing between the two block-scoped declaration keywords let and const according to intent. It is not a separate syntax or feature of the language; rather, it reflects how developers apply the existing keywords introduced in ES6 to manage variable bindings safely and clearly.
In JavaScript, both let and const are block-scoped, unlike var. The difference is in mutability of the
Practical guidelines: default to const when you do not need to rebind the variable. Use let only
Browser and tooling support: let and const have been supported in all modern environments since around 2015;