Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cdf2d7e

Browse files
Definition of Undefined is Missing
Added In the Missing definition of the Undefined variable in Javascript on Line 61.
1 parent 4ba4b9a commit cdf2d7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Notes/3-Hoisting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Output:
5858
> Error: x is not defined // note that not defined here and "undefined" in sample 2 are totally different.
5959
6060
- Not defined: We have not initialised the value for variable anywhere in the entire code and in memory space.
61-
- Undefined:
61+
- Undefined: It is a placeholder that is assigned to a variable by the Javascript Engine until the variable is assigned with some other value.
6262

6363
__Hoisting__ is a concept which enables us to extract values of variables and functions even before initialising/assigning value without getting *error*
6464

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /