mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-09-01 13:22:38 +02:00
added description and resources for null in javascript (#6242)
This commit is contained in:
committed by
GitHub
parent
8da3fb7220
commit
dcb8df908d
@@ -1 +1,12 @@
|
|||||||
# null
|
# null
|
||||||
|
|
||||||
|
The `null` value in JavaScript signifies the deliberate absence of any object value. It is considered as one of JavaScript's primitive values and a `falsy` value.
|
||||||
|
|
||||||
|
*Deliberate absence* emphasises the intentional use of `null` to indicate that a variable does not point to any object. This explicit declaration conveys the purposeful nature of null, showing that the variable is meant to be empty or non-existent at execution time.
|
||||||
|
|
||||||
|
In essence, `null` is a way to reset a variable, signalling that it should not reference any object.
|
||||||
|
|
||||||
|
Visit the following resources to learn more:
|
||||||
|
|
||||||
|
- [@article@What is null in JavaScript](https://www.altcademy.com/blog/what-is-null-in-javascript/)
|
||||||
|
- [@article@null in JavaScript](https://masteringjs.io/tutorials/fundamentals/null)
|
Reference in New Issue
Block a user