Skip to content

Commit 109300f

Browse files
authored
Update js codes.docx
1 parent af36ddb commit 109300f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

js codes.docx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1849,7 +1849,8 @@ until they are assigned because they are in Temporal dead zone.To avoid Temporal
18491849
-- console.log(getName); without parenthisis -- print the body of function.
18501850
-- 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.
18511851
-- with arrow and function expression
1852-
-- callstack
1852+
-- callstack
1853+
-- console.log(greetingName) //print the body of a function
18531854

18541855
Examples:
18551856
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)