Checkout this video:
For one, it can help to create more consistent code. If a variable can potentially have multiple different values, using null can help to indicate that the variable does not currently have a value. This can be helpful for other developers who may need to work with your code.
Another benefit of using null is that it can help to prevent errors in your code. If you try to access a variable that has not been assigned a value, you will get an error. However, if you check for a null value before trying to access the variable, you can avoid this error.
While null is technically a value, it can cause some confusion in code. Because typeof null returns “object”, which is a misleading result, it can be difficult to know how to handle null values properly. Additionally, because null represents an absence of value, it can be tricky to use in comparisons and other operations.