Confusion over null and undefined #4
Answered
by
AdyaTech
TheDevMind
asked this question in
Q&A
-
|
What is the difference between null and undefined? |
Beta Was this translation helpful? Give feedback.
Answered by
AdyaTech
Jun 19, 2026
Replies: 1 comment
-
|
undefined means a variable has been declared but not assigned a value. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
TheDevMind
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
undefined means a variable has been declared but not assigned a value.
null is an intentional assignment representing "no value."