diff --git a/javascript/answers/shubham-soni-q48.html b/javascript/answers/shubham-soni-q48.html new file mode 100644 index 0000000..fb19bee --- /dev/null +++ b/javascript/answers/shubham-soni-q48.html @@ -0,0 +1,79 @@ + +
+ + + + + ++ + + Home + > JavaScript Questions + > What is "temporal dead zone" in Javascript? + + + +
++ A temporal dead zone (TDZ) is the area of a block where a variable is inaccessible until the moment the computer completely initializes it with a value. + + A block is a pair of braces ({...}) used to group multiple statements. + Initialization occurs when you assign an initial value to a variable. + Suppose you attempt to access a variable before its complete initialization. In such a case, JavaScript will throw a ReferenceError. + + +
+ + +