DEV Community

EOluwaseun
EOluwaseun

Posted on

Undefined and Null are two dinstinct data types in javascript ...check the difference πŸ‘‡

  • Undefined

Undefined data types in javascript means the variable has been declared, but has no value.
Example πŸ‘‡

Undefined

  • Null

Null in javascript, is an object that can be assigned to a variable as a representation of nothing or void.
Example πŸ‘‡

Null

THE END!

I know most of you understand how the two data types in javascript differ,but this information is only for beginners.

Thanks for Reading😊😊...

Top comments (0)