1 parent 0a14556 commit af36ddbCopy full SHA for af36ddb
1 file changed
js codes.docx
@@ -1847,7 +1847,9 @@ until they are assigned because they are in Temporal dead zone.To avoid Temporal
1847
1848
-- Can able to access variable and function before initialise. Can able to access it without any error.
1849
-- console.log(getName); without parenthisis -- print the body of function.
1850
-
+-- if we remove var x=7 then it will get as refrennce error: x is not defined because x is not present at all and we are trying to access it.
1851
+-- with arrow and function expression
1852
+-- callstack
1853
1854
Examples:
1855
1. Hoisting Function: If i write below code then JS compiler auto move declaration first then call of a function.
0 commit comments