filmov
tv
What is the difference between 'null' and 'undefined'?
![preview_player](https://i.ytimg.com/vi/aj5UwhGRa2M/maxresdefault.jpg)
Показать описание
In JavaScript, null and undefined both represent the absence of value. However, they are used in slightly different scenarios. undefined means a variable has been declared but has not yet been assigned a value. On the other hand, null is an assignment value that means no value or no object. It is assigned to a variable to represent no value or no object.