There are some subtle differences --— let scoping behaves more like variable scoping does in more or less any other languages.
e.g. It scopes to the enclosing block, They don't exist before they're declared, etc.
However it's worth noting that let is only a part of newer Javascript implementations and has varying degrees of browser support.
There are some subtle differences -- let scoping behaves more like variable scoping does in more or less any other languages.
e.g. It scopes to the enclosing block, They don't exist before they're declared, etc.
However it's worth noting that let is only a part of newer Javascript implementations and has varying degrees of browser support.
There are some subtle differences — let scoping behaves more like variable scoping does in more or less any other languages.
e.g. It scopes to the enclosing block, They don't exist before they're declared, etc.
However it's worth noting that let is only a part of newer Javascript implementations and has varying degrees of browser support.
- 15.7k
- 9
- 65
- 70
There are some subtle differences -- let scoping behaves more like variable scoping does in more or less any other languages.
e.g. It scopes to the enclosing block, They don't exist before they're declared, etc.
However it's worth noting that let is alsoonly a Mozilla extension, not part of any standard (ECMAScript is the standard, JavaScript is the Mozilla implementation, the history is slightly convoluted but that's how it goes), and so let is only available in Firefoxnewer Javascript implementations and otherhas varying degrees of Mozilla based applications browser support.
There are some subtle differences -- let scoping behaves more like variable scoping does in more or less any other languages.
e.g. It scopes to the enclosing block, They don't exist before they're declared, etc.
However it's worth noting that let is also a Mozilla extension, not part of any standard (ECMAScript is the standard, JavaScript is the Mozilla implementation, the history is slightly convoluted but that's how it goes), and so let is only available in Firefox and other Mozilla based applications.
There are some subtle differences -- let scoping behaves more like variable scoping does in more or less any other languages.
e.g. It scopes to the enclosing block, They don't exist before they're declared, etc.
However it's worth noting that let is only a part of newer Javascript implementations and has varying degrees of browser support.
- 17.4k
- 20
- 121
- 156
There are some subtle differences -- Letlet scoping behaves more like variable scoping does in more or less any other language -- eglanguages. it
e.g. It scopes to the enclosing block, theyThey don't exist before they're declared, etc.
However it's worth noting that letlet is also a Mozilla extension, not part of any standard (EcmaScriptECMAScript is the standard, JavaScript is the mozillaMozilla implementation, the history is slightly convoluted but that's how it goes), and so let is only available in firefoxFirefox and other mozilla based browsersMozilla based applications.
There are some subtle differences -- Let scoping behaves more like variable scoping does in more or less any other language -- eg. it scopes to the enclosing block, they don't exist before they're declared, etc
However it's worth noting that let is also a Mozilla extension, not part of any standard (EcmaScript is the standard, JavaScript is the mozilla implementation, the history is slightly convoluted but that's how it goes), and so let is only available in firefox and other mozilla based browsers.
There are some subtle differences -- let scoping behaves more like variable scoping does in more or less any other languages.
e.g. It scopes to the enclosing block, They don't exist before they're declared, etc.
However it's worth noting that let is also a Mozilla extension, not part of any standard (ECMAScript is the standard, JavaScript is the Mozilla implementation, the history is slightly convoluted but that's how it goes), and so let is only available in Firefox and other Mozilla based applications.