About the ES2015 Series
This series, Understanding ES2015 In Depth, will give you a thorough understanding of some of the most recent additions to ECMAScript, the scripting language also known as JavaScript, which powers the modern Internet as we know and love it.
About the Author
Dan Wellman is an author and web developer from the UK. He’s written nine books on using JavaScript frameworks and libraries including YUI, jQuery, and jQuery UI, and is a regular contributor to Envato’s Tuts+ code courses. He is also Lead Front-End Developer at Bluedoor DST and Curriculum Director at Bov Academy of Programming, where he has written the highly acclaimed course Becoming a JavaScript Expert.
Dan has previously worked as a Front-End Engineer at Microsoft.
About this Post
This post, Block Scope with let and const, lays the foundation of your ES2015 knowledge by giving you a solid foundation in the fundamentals of the different scopes available in JavaScript, the different scenarios that cause scopes to be created, and the impact this has on variable access.
Prerequisites:
- None
Reading time: 15 minutes
Author: Dan Wellman
One of the major features introduced by ES2015 is a whole new scope. In this section, we’re going to start by learning what a scope is.