you said about TDZ:
"It is Time taken between declaring the variable(using let or const) and initializing the variable."
IMHO It will be super useful to mention when exactly let/const variables declaring/creating. The answer - when new scope is instantiated. So TDZ always starts from the first line of the scope and ends at line with let/const a =...
and like for attempt describe hoisting for let/const=)
Optimistic human ๐ง and trying hard not to procrastinate things!!!๐ Passionate about Web Development and have a keen interest in learning new technologies.
you said about TDZ:
"It is Time taken between declaring the variable(using let or const) and initializing the variable."
IMHO It will be super useful to mention when exactly let/const variables declaring/creating. The answer - when new scope is instantiated. So TDZ always starts from the first line of the scope and ends at line with let/const a =...
and like for attempt describe hoisting for let/const=)
I should've elaborated that part but thanks ๐.