The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

The let keyword in ES6

The let keyword in ES6

2:58
Block scoping can be surprising, and sometimes confusing, in Javascript. With es6, we have access to the `let` keyword to remove this pain.
Watch this lesson now
Avatar
egghead.io

Block scoping can be surprising, and sometimes confusing, in Javascript. With es6, we have access to the let keyword to remove this pain.

Avatar
Wayne

I wonder what are the perf implications of let on mobile devices?

At any rate, another smashingly good video mate!

In reply to egghead.io
Avatar
Roman Ganchenko

I think this is great interview task to see how people understand function vs block scoping.
Great video! Thanks John

In reply to Wayne
Avatar
Ang

I noticed that block-binding option is not turned on by default
One needs
traceur --block-binding true
or
traceur --experimental
see https://github.com/google/traceur-compiler/wiki/LanguageFeatures#language-features

In reply to egghead.io
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?