Skip to content

Commit a2b6320

Browse files
Update Ep8.md
1 parent 7fedbbe commit a2b6320

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Notes/Ep8.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ The Errors that occurs if no reference is available for access. Can occur when t
105105
* Try using const wherever possible.
106106
* If not, use let.
107107
* Avoid var.
108-
* Declare all variables with let at the top to avoid errors to shrink temporal dead zone to zero.
108+
* Declare and initialize all variables with let to the top to avoid errors to shrink temporal dead zone window to zero.
109109

110+
PS: If in any interview when asked "Are let and const hoisted?" explain fully about temporal deadzone and all the above concepts too
110111

111112

0 commit comments

Comments
 (0)