With the release of ES6, two new ways of variable declaration were introduced in JavaScript. These new ways use the keywords ‘let’ and ‘const’ These were basically improvements to the old way of declaring variables using ‘var’ To understand each of these 3 ways, we need to understand two important concepts in JavaScript — Scope and Hoisting.

4m read timeFrom sriharsh.hashnode.dev
Post cover image

Sort: