Is let let = 1 a valid statement?

Eric Suen eric.suen.tech at gmail.com
Fri Nov 13 06:44:05 UTC 2015


In both Chrome and Firefox,

let FutureReservedWord = expr is invalid, but const | var
FutureReservedWord = expr is valid, is this defined in ES 6 or
historical reason?

let/const both are LexicalDeclaration, why behave differently?

-- 
------------------------------------------------
Spket IDE - Development Tool for RIA.

http://www.spket.com


More information about the es-discuss mailing list