1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-31 21:11:44 +02:00

added description and resources for null in javascript (#6242)

This commit is contained in:
Samaila Chatto Bashir
2024-07-29 10:06:04 +01:00
committed by GitHub
parent 8da3fb7220
commit dcb8df908d

View File

@@ -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)