Skip to content

Commit f02a6d6

Browse files
authored
Update js codes.docx
1 parent 6f28416 commit f02a6d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎js codes.docx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3061,7 +3061,7 @@ greeting(); //Hi greeting
30613061
greeting1(); //Hey greeting1
30623062
greeting2(); //Hello greeting2
30633063
-----------------------------------------------------------------------
3064-
console.log(x); //undefined
3064+
console.log(x); //undefined //1
30653065
greeting(); //function body will assign before executing //Hi greeting- as output post execution
30663066
//greeting1(); //Uncaught TypeError: greeting1 is not a function because its treeting like a variable not a function, so rather then storing a function body it's storing undefined by default.
30673067
//greeting2(); ////Uncaught TypeError: greeting1 is not a function because its treeting like a variable not a function, so rather then storing a function body it's storing undefined by default.

0 commit comments

Comments
 (0)