You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -526,7 +526,7 @@ Here's a table summarizing the 3 ways of loading `<script>`s in a HTML document.
526
526
| Trait |`null`|`undefined`| Undeclared |
527
527
| --- | --- | --- | --- |
528
528
| Meaning | Explicitly set by the developer to indicate that a variable has no value | Variable has been declared but not assigned a value | Variable has not been declared at all |
529
-
| Type |`object`|`undefined`|Throws a `ReferenceError`|
529
+
| Type (via `typeof` operator) |`'object'`|`'undefined'`|`'undefined'`|
530
530
| Equality Comparison |`null == undefined` is `true`|`undefined == null` is `true`| Throws a `ReferenceError`|
@@ -2239,7 +2239,7 @@ To check the data type of a variable in JavaScript, you can use the `typeof` ope
2239
2239
| Trait |`null`|`undefined`| Undeclared |
2240
2240
| --- | --- | --- | --- |
2241
2241
| Meaning | Explicitly set by the developer to indicate that a variable has no value | Variable has been declared but not assigned a value | Variable has not been declared at all |
2242
-
| Type |`object`|`undefined`|Throws a `ReferenceError`|
2242
+
| Type (via `typeof` operator) |`'object'`|`'undefined'`|`'undefined'`|
2243
2243
| Equality Comparison |`null == undefined` is `true`|`undefined == null` is `true`| Throws a `ReferenceError`|
0 commit comments