Hoisting behaviour of 'const' and 'let'
mjs at apple.com
Mon Oct 13 18:04:42 PDT 2008
On Oct 12, 2008, at 8:52 AM, Mike Shaver wrote:
> On Sun, Oct 12, 2008 at 9:29 AM, David-Sarah Hopwood
> <david.hopwood at industrial-designers.co.uk> wrote:
>> - the hoisting behaviour of 'const' should be the same as 'let',
>> * it doesn't need to hoist for backward compatibility, unlike
> Not for compatibility with the standard, but const as implemented in
> at least 2/4 (not sure about JSCore) hoists, I believe.
to the top of the function.
More information about the Es-discuss