Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Answer

added 5 characters in body
Source Link
Jack Bashford
  • 44.3k
  • 11
  • 56
  • 84

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.

updated outdated information about browser support
Source Link
Jim Hunziker
  • 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.

Improved answer and highlighting the keyword let instead of Let, since both are different
Source Link

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.

Source Link
olliej
  • 36.9k
  • 9
  • 61
  • 55
Loading
lang-js

AltStyle によって変換されたページ (->オリジナル) /