Skip to content

Instantly share code, notes, and snippets.

@ratul0
Created December 7, 2015 09:15
Show Gist options
  • Select an option

  • Save ratul0/b111e6ab9e58351e7bfd to your computer and use it in GitHub Desktop.

Select an option

Save ratul0/b111e6ab9e58351e7bfd to your computer and use it in GitHub Desktop.
ES6 let keyword hoist
function do_something() {
console.log(foo); // ReferenceError
let foo = 2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment