6
Reply

What is the difference between undefined value and null value ?

Manoj Kalla

Manoj Kalla

Dec 06, 2015
698
2

    Undefined means a variable has been declared but has not yet been assigned a value. On the other hand, null is an assignment value. It can be assigned to a variable as a representation of no value. Also, undefined and null are two distinct types: undefined is a type itself (undefined) while null is an object. Unassigned variables are initialized by JavaScript with a default value of undefined. JavaScript never sets a value to null. That must be done programmatically.

    Manoj Kalla
    December 06, 2015
    3

    If do not assign the value then this is called Null value & if we assigne like 5@ u8 This called undefiled

    Mukesh Kumar
    September 02, 2017
    0

    If do not assign the value then this is called Null value & if we assigne like 5@ u8 This called undefiled

    Mukesh Kumar
    September 02, 2017
    0

    If do not assign the value then this is called Null value & if we assigne like 5@ u8 This called undefiled

    Mukesh Kumar
    September 02, 2017
    0

    If do not assign the value then this is called Null value & if we assigne like 5@ u8 This called undefiled

    Mukesh Kumar
    September 02, 2017
    0

    If do not assign the value then this is called Null value & if we assigne like 5@ u8 This called undefiled

    Mukesh Kumar
    September 02, 2017
    0