{
  "meta": {
    "canonicalUrl": "https://timetostable.com/feature/let-const",
    "bcdVersion": "8.1.11",
    "webFeaturesVersion": "3.48.0"
  },
  "kind": "web-feature",
  "webFeature": {
    "id": "let-const",
    "name": "Let and const",
    "description": "The let and const declarations define block-scoped variables.",
    "group": "javascript",
    "groupName": "JavaScript",
    "spec": "https://tc39.es/ecma262/multipage/ecmascript-language-statements-and-declarations.html#sec-let-and-const-declarations",
    "baseline": "high",
    "baselineLowDate": "2016-09-20",
    "baselineLowDay": 17064,
    "baselineHighDate": "2019-03-20",
    "compatCount": 2,
    "cats": [
      "javascript"
    ],
    "compatKeysSample": [
      "javascript.statements.const",
      "javascript.statements.let"
    ],
    "s": {
      "chrome": {
        "v": "49",
        "d": 16862
      },
      "chrome_android": {
        "v": "49",
        "d": 16869
      },
      "edge": {
        "v": "14",
        "d": 17015
      },
      "firefox": {
        "v": "44",
        "d": 16826
      },
      "firefox_android": {
        "v": "44",
        "d": 16826
      },
      "safari": {
        "v": "10",
        "d": 17064
      },
      "safari_ios": {
        "v": "10",
        "d": 17057
      }
    }
  },
  "relatedBcdFeatures": [
    {
      "id": "javascript.statements.const",
      "cat": "javascript",
      "mdn": "JavaScript/Reference/Statements/const",
      "spec": "https://tc39.es/ecma262/multipage/ecmascript-language-statements-and-declarations.html#sec-let-and-const-declarations",
      "st": 1,
      "wf": "let-const",
      "bl": "high",
      "bld": 17064,
      "s": {
        "chrome": {
          "v": "21",
          "d": 15552
        },
        "firefox": {
          "v": "36",
          "d": 16490
        },
        "safari": {
          "v": "5.1",
          "d": 15175
        },
        "edge": {
          "v": "12",
          "d": 16645
        },
        "chrome_android": {
          "v": "25",
          "d": 15763
        },
        "firefox_android": {
          "v": "36",
          "d": 16493
        },
        "safari_ios": {
          "v": "5",
          "d": 15259
        },
        "webview_android": {
          "v": "4.4",
          "d": 16048
        },
        "webview_ios": {
          "v": "5",
          "d": 15259
        },
        "samsunginternet_android": {
          "v": "1.5",
          "d": 15973
        },
        "opera": {
          "v": "9",
          "d": 13319
        },
        "opera_android": {
          "v": "10.1",
          "d": 14922
        },
        "deno": {
          "v": "1.0",
          "d": 18395
        },
        "nodejs": {
          "v": "6.0.0",
          "d": 16917
        },
        "bun": {
          "v": "1.0.0",
          "d": 19608
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        },
        "ie": {
          "v": "11",
          "d": 15995
        }
      },
      "notes": [
        {
          "t": "Before Firefox 13, <code>const</code> is implemented, but re-assignment is not failing.",
          "b": [
            "firefox"
          ]
        },
        {
          "t": "Before Firefox 46, a <code>TypeError</code> was thrown on redeclaration instead of a <code>SyntaxError</code>.",
          "b": [
            "firefox"
          ]
        },
        {
          "t": "Before Firefox for Android 14, <code>const</code> is implemented, but re-assignment is not failing.",
          "b": [
            "firefox_android"
          ]
        },
        {
          "t": "Before Firefox for Android 46, a <code>TypeError</code> was thrown on redeclaration instead of a <code>SyntaxError</code>.",
          "b": [
            "firefox_android"
          ]
        }
      ]
    },
    {
      "id": "javascript.statements.let",
      "cat": "javascript",
      "mdn": "JavaScript/Reference/Statements/let",
      "spec": "https://tc39.es/ecma262/multipage/ecmascript-language-statements-and-declarations.html#sec-let-and-const-declarations",
      "st": 1,
      "wf": "let-const",
      "bl": "high",
      "bld": 17064,
      "s": {
        "chrome": {
          "v": "49",
          "d": 16862
        },
        "firefox": {
          "v": "44",
          "d": 16826
        },
        "safari": {
          "v": "10",
          "d": 17064
        },
        "edge": {
          "v": "14",
          "d": 17015
        },
        "chrome_android": {
          "v": "49",
          "d": 16869
        },
        "firefox_android": {
          "v": "44",
          "d": 16826
        },
        "safari_ios": {
          "v": "10",
          "d": 17057
        },
        "webview_android": {
          "v": "49",
          "d": 16869
        },
        "webview_ios": {
          "v": "10",
          "d": 17057
        },
        "samsunginternet_android": {
          "v": "5.0",
          "d": 17150
        },
        "opera": {
          "v": "17",
          "d": 15986
        },
        "opera_android": {
          "v": "18",
          "d": 16029
        },
        "deno": {
          "v": "1.0",
          "d": 18395
        },
        "nodejs": {
          "v": "6.0.0",
          "d": 16917
        },
        "bun": {
          "v": "1.0.0",
          "d": 19608
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        },
        "ie": {
          "p": [
            "11",
            15995
          ]
        }
      },
      "notes": [
        {
          "t": "<a href=\"https://developer.mozilla.org/docs/Web/JavaScript/Reference/Strict_mode\">Strict mode</a> is required.",
          "b": [
            "chrome",
            "chrome_android",
            "webview_android",
            "samsunginternet_android"
          ]
        },
        {
          "t": "Before Firefox 44, <code>let</code> is only available to code blocks in HTML wrapped in a <code>&lt;script type=\"application/javascript;version=1.7\"&gt;</code> block (or higher version) and has different semantics (e.g. no temporal dead zone).",
          "b": [
            "firefox"
          ]
        },
        {
          "t": "Before Firefox 46, a <code>TypeError</code> is thrown on redeclaration instead of a <code>SyntaxError</code>.",
          "b": [
            "firefox"
          ]
        },
        {
          "t": "Firefox 54 adds support of <code>let</code> in workers.",
          "b": [
            "firefox"
          ]
        },
        {
          "t": "In Edge 12 and 13, <code>let</code> within a <code>for</code> 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 <code>let</code> immediately before the loop.",
          "b": [
            "edge"
          ]
        },
        {
          "t": "Before Firefox for Android 44, <code>let</code> is only available to code blocks in HTML wrapped in a <code>&lt;script type=\"application/javascript;version=1.7\"&gt;</code> block (or higher version) and has different semantics (e.g. no temporal dead zone).",
          "b": [
            "firefox_android"
          ]
        },
        {
          "t": "Before Firefox for Android 46, a <code>TypeError</code> is thrown on redeclaration instead of a <code>SyntaxError</code>.",
          "b": [
            "firefox_android"
          ]
        },
        {
          "t": "Firefox for Android 54 adds support of <code>let</code> in workers.",
          "b": [
            "firefox_android"
          ]
        },
        {
          "t": "In Internet Explorer, <code>let</code> within a <code>for</code> 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 <code>let</code> immediately before the loop.",
          "b": [
            "ie"
          ]
        }
      ]
    }
  ]
}