Javascript

Topic: JS Data Types

What is the difference between undefined value and null value ?

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.

Browse random answers: