Stories by Linda Vivah on Medium — software-development

ES6 JavaScript: Understanding Let & Const

Linda Haviv

Tags coding, es6, javascript, software-development, web-development


There were many updates brought by ES6. One of the Syntax updates introduced was the concept of declaring variables with let andconst instead of var

To understand whylet & constwere introduced, we must first understand how var works & the concept of hoisting → That being said, here are the 5 questions we will cover in order:

  1. HOW DOES VAR...