> For the complete documentation index, see [llms.txt](https://lochiwei.gitbook.io/web/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lochiwei.gitbook.io/web/js/val/prim/null.md).

# null

[JS](/web/js.md) ⟩ [value](/web/js/val.md) ⟩ [primitive](/web/js/val/prim.md) ⟩ null

{% hint style="success" %}
a [literal](/web/js/grammar/token/literal.md) that represents the <mark style="color:yellow;">**intentional absence**</mark> of any [object](/web/js/val/obj.md) [value](/web/js/val.md).
{% endhint %}

{% tabs %}
{% tab title="⭐️ 重點" %}
{% hint style="warning" %} <mark style="color:purple;">**null**</mark>&#x20;

* is a [literal](/web/js/grammar/token/literal.md).
* is a [reserved word](/web/js/grammar/token/keyword/reserved.md):exclamation:
* has <mark style="color:red;">**no**</mark> [primitive wrapper](/web/js/val/prim/wrapper.md), <mark style="color:red;">**can't**</mark> call <mark style="color:yellow;">**methods**</mark>, has <mark style="color:red;">**no**</mark> <mark style="color:yellow;">**properties**</mark>.
  {% endhint %}

{% hint style="warning" %} <mark style="color:purple;">**null**</mark> and [undefined](/web/js/val/prim/undefined.md) are the <mark style="color:red;">**only**</mark>**&#x20;**<mark style="color:yellow;">**two**</mark> [value](/web/js/val.md)s that <mark style="color:red;">**do not**</mark>**&#x20;**<mark style="color:yellow;">**have**</mark> [property](/web/js/val/obj/prop.md).:exclamation:
{% endhint %}
{% endtab %}

{% tab title="👥 相關" %}

* compare： [undefined](/web/js/val/prim/undefined.md)
  {% endtab %}

{% tab title="📘 手冊" %}

* [null](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/null)
* [difference between null and undefined](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/null#difference_between_null_and_undefined)
  {% endtab %}
  {% endtabs %}
