Skip to content

Commit af36ddb

Browse files
authored
Update js codes.docx
1 parent 0a14556 commit af36ddb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

js codes.docx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1847,7 +1847,9 @@ until they are assigned because they are in Temporal dead zone.To avoid Temporal
18471847

18481848
-- Can able to access variable and function before initialise. Can able to access it without any error.
18491849
-- console.log(getName); without parenthisis -- print the body of function.
1850-
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
18511853

18521854
Examples:
18531855
1. Hoisting Function: If i write below code then JS compiler auto move declaration first then call of a function.

0 commit comments

Comments
 (0)