Hoisting in JavaScript and function scope issues with keyword var

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)

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments