3 ms·
I'm not sure what happens at the engine level, but also not sure that it matters. As far as I know, Babel translates all `const` and `let` statements to `var` [
by ironmagma 6y ago
I'm not sure what happens at the engine level, but also not sure that it matters. As far as I know, Babel translates all `const` and `let` statements to `var` [1]. There's not really any special interpreter functionality required by const because it behaves just like var but with some lexical rules (enforced by the transpiler) and some slight differences in scoping which can also be erased by the transpiler.
[1] http://shorturl.at/gAKOU http://shorturl.at/gAKOU