On Mon, Nov 4, 2013 at 5:36 AM, Axel Rauschmayer <[email protected]> wrote:
> What is the best way to create top-level scopes in ES6?

I guess I am probably missing something important, but I thought you
could just write a block and use `let` in it:

    {
        let foo = ...;
        ...
    }

even in sloppy mode.

-j
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to