let & const in JSTemporal Dead Zone | | Namaste JavaScript Ep. 8

Akshay Saini
Youtube
Related Topic
:- Javascript Web Development

 JavaScript behave differently when they are Hoisted. Understanding the difference between var, let and const in JS will help you write better code. const and let are in a Temporal Dead Zone until they are initialized some value. You might encounter SyntaxError, TypeError or ReferenceError while using them in your code. 

Comments