-
Nov 19th, 2019, 12:31 AM
#1
Thread Starter
Member
What is the difference between undefined and null in JavaScript?
What is the difference between undefined and null in JavaScript?
-
Nov 24th, 2019, 09:00 AM
#2
Re: What is the difference between undefined and null in JavaScript?
Hi there Siddhi Patel,
this might possibly help with your enlightenment...
~ the original bald headed old fart ~
-
Dec 3rd, 2019, 04:02 AM
#3
Member
Re: What is the difference between undefined and null in JavaScript?
undefined means a variable has been declared but has not yet been assigned a value and null is an assignment value which can be assigned to a variable as a representation of no value.
Code:
var test;
var testTry =" ";
alert(test); //undefined
alert(testTry); //null
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|