← Back to release summary

Lexical Declarations (ES6)

Category
JavaScript
Type
New or changed feature
Status
Enabled by default (Chrome 41)
Intent stage
None

Summary

'let' and 'const' declarations define variables/constants with block scoping in strict mode.

Standards & signals

Docs: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const

Samples: https://github.com/GoogleChrome/samples/tree/gh-pages/lexical-declarations-es6

View on chromestatus.com