in JavaScript by
Q:
What is the difference between undefined value and null value?

1 Answer

0 votes
by

Undefined value: A value that is not defined and has no keyword is known as undefined value. For example:

  1. int number;//Here, a number has an undefined value.  

Null value: A value that is explicitly specified by the keyword "null" is known as a null value. For example:

  1. String str=null;//Here, str has a null value.  

Related questions and answers

0 votes
asked Mar 21, 2021 in JavaScript by rajeshsharma
0 votes
asked Apr 23 in Statistics and Probability Basics by sharadyadav1986
0 votes
0 votes
asked Apr 13, 2020 in QuickTest Professional (QTP) by amita rallin
...