Answer:
Following are the basic diferences between undefined value and null value.
(i)Undefined value cannot be explicitly stated i.e., there is no keyword called undefined whereas null value has keyword called null.
(ii)Typeof undefined variable or property returns undefined whereas type of null value returns object.
Asked In: Many Interviews |
Alert Moderator