Рет қаралды 64,023
Understanding Hoisting in JavaScript, also look at function scoping with keyword var.
In this tutorial we look at following issues with keyword var in ES5
- function scope issues
- Hoisting
- lack of const
Solution with keyword 'let' and 'const' in ES6 ( ES2015)