Baseline Widely JS
javascript.statements.let
Granular MDN Browser Compat Data support history across 17 tracked browsers.
Specification Area
JS
Standard track
First Core Launch
Firefox 44
2016-01-26
Core-3 Stability
238d
Last: Safari (2016-09-20)
Baseline Feature
Widely
Let and const
Browser Support Timeline
Notes (9)
Chrome, Chr And, WV And, Samsung: Strict mode is required.Firefox: Before Firefox 44,let is only available to code blocks in HTML wrapped in a <script type="application/javascript;version=1.7"> block (or higher version) and has different semantics (e.g. no temporal dead zone).Firefox: Before Firefox 46, a TypeError is thrown on redeclaration instead of a SyntaxError.Firefox: Firefox 54 adds support of let in workers.Edge: In Edge 12 and 13, let within a for loop initializer does not create a separate variable for each loop iteration as defined by ES2015. Instead, it behaves as though the loop were wrapped in a scoping block with the let immediately before the loop.FF And: Before Firefox for Android 44, let is only available to code blocks in HTML wrapped in a <script type="application/javascript;version=1.7"> block (or higher version) and has different semantics (e.g. no temporal dead zone).FF And: Before Firefox for Android 46, a TypeError is thrown on redeclaration instead of a SyntaxError.FF And: Firefox for Android 54 adds support of let in workers.IE: In Internet Explorer, let within a for loop initializer does not create a separate variable for each loop iteration as defined by ES2015. Instead, it behaves as though the loop were wrapped in a scoping block with the let immediately before the loop.Full Browser Compatibility Table
| Browser | Type | Version | Release Date | Status / Caveats |
|---|---|---|---|---|
| Chrome | desktop | 49 | 2016-03-02 | Supported |
| Firefox | desktop | 44 | 2016-01-26 | Supported |
| Safari | desktop | 10 | 2016-09-20 | Supported |
| Edge | desktop | 14 | 2016-08-02 | Supported |
| Chrome Android | mobile | 49 | 2016-03-09 | Supported |
| Firefox for Android | mobile | 44 | 2016-01-26 | Supported |
| Safari on iOS | mobile | 10 | 2016-09-13 | Supported |
| WebView Android | mobile | 49 | 2016-03-09 | Supported |
| WebView on iOS | mobile | 10 | 2016-09-13 | Supported |
| Samsung Browser | mobile | 5.0 | 2016-12-15 | Supported |
| Opera | desktop | 17 | 2013-10-08 | Supported |
| Opera Android | mobile | 18 | 2013-11-20 | Supported |
| Deno | server | 1.0 | 2020-05-13 | Supported |
| Node.js | server | 6.0.0 | 2016-04-26 | Supported |
| Bun | server | 1.0.0 | 2023-09-08 | Supported |
| Quest Browser | xr | 5.0 | 2018-07-01 | Supported |
| Internet Explorer | desktop | 11 | 2013-10-17 | Supported |