DEV Community

loading...

Discussion on: Some JavaScript Principles you should know.

Collapse
shaharafat profile image
Md. Shah Arafat Author

Yah. That was my lack of knowledge. let and const both are hoisted but we can't access it before declaration because of TDZ. Learnt something new. Thanks man.