> 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/type.md). Agents can also search and read this documentation through its [MCP server](https://lochiwei.gitbook.io/web/~gitbook/mcp).

# type

🚧 under construction

[JS](https://lochiwei.gitbook.io/web/js.md) ⟩ [value](https://lochiwei.gitbook.io/web/js/val.md) ⟩ type

{% hint style="warning" %}
🚧
{% endhint %}

{% tabs %}
{% tab title="⭐️ 重點" %}
{% hint style="warning" %}
there is <mark style="color:red;">**no**</mark> <mark style="color:purple;">**type**</mark> <mark style="color:yellow;">**associated**</mark> with [variable declaration](https://lochiwei.gitbook.io/web/js/variable/declare.md):exclamation:
{% endhint %}

{% hint style="info" %}
The <mark style="color:yellow;">**operands**</mark> of [comparison operator](https://lochiwei.gitbook.io/web/js/grammar/op/relational/compare.md) may be <mark style="color:yellow;">**of**</mark>**&#x20;**<mark style="color:red;">**any**</mark> <mark style="color:purple;">**type**</mark>.
{% endhint %}
{% endtab %}

{% tab title="🔴 主題" %}

* <mark style="color:yellow;">**main topics**</mark>
  * [type name](https://lochiwei.gitbook.io/web/js/val/type/name.md)
  * [custom type name](https://lochiwei.gitbook.io/web/js/val/type/name/custom-type-name.md)
  * [Broken mention](broken://pages/l1v0bwCArjuB3OOG3NfE)
* <mark style="color:yellow;">**type terms**</mark>
  * [falsy](https://lochiwei.gitbook.io/web/js/val/type/falsy.md)
  * [statically typed](https://lochiwei.gitbook.io/web/js/val/type/term/static.md)
  * [dynamically typed](https://lochiwei.gitbook.io/web/js/val/type/term/dynamic.md) - JS is a dynamically typed language.
* <mark style="color:yellow;">**value types**</mark>
  * [primitive](https://lochiwei.gitbook.io/web/js/val/prim.md)
    * [String](https://lochiwei.gitbook.io/web/js/val/prim/str.md) <mark style="color:yellow;">**/**</mark> [Number](https://lochiwei.gitbook.io/web/js/val/prim/num.md) <mark style="color:yellow;">**/**</mark> [Boolean](https://lochiwei.gitbook.io/web/js/val/prim/boolean.md)
  * [object](https://lochiwei.gitbook.io/web/js/val/obj.md)
    * [class](https://lochiwei.gitbook.io/web/js/val/class.md) <mark style="color:yellow;">**/**</mark> [Array](https://lochiwei.gitbook.io/web/js/val/builtin/arr.md) <mark style="color:yellow;">**/**</mark> [Set](https://lochiwei.gitbook.io/web/js/val/builtin/set.md) <mark style="color:yellow;">**/**</mark> [Map](https://lochiwei.gitbook.io/web/js/val/builtin/map.md)
* <mark style="color:yellow;">**helper functions**</mark>
  * [type functions](https://lochiwei.gitbook.io/web/js/val/type/type-functions.md)
    {% endtab %}

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

* [typeof](https://lochiwei.gitbook.io/web/js/val/type/name/typeof.md) <mark style="color:yellow;">**determines**</mark> the [type](https://lochiwei.gitbook.io/web/js/val/type.md) of a [value](https://lochiwei.gitbook.io/web/js/val.md). (:point\_right: [type name](https://lochiwei.gitbook.io/web/js/val/type/name.md))
* [typeName()](https://lochiwei.gitbook.io/web/js/val/type/name/typename.md)
* [TypeScript](https://lochiwei.gitbook.io/web/appendix/typescript.md) is a JavaScript dialect that checks types.
  {% endtab %}

{% tab title="📗 參考" %}

* [ ] Eloquent JavaScript > [Types](https://eloquentjavascript.net/08_error.html#h_k7niieKEJG)
  {% endtab %}

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

* [typeof](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof)
* [instanceof](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/instanceof)
  {% endtab %}

{% tab title="🚧" %}

* [ ] type conversion table
* [ ] what is "type" in JS? 🚧
* [ ] how to determine a value's "type"? 🚧
  {% endtab %}
  {% endtabs %}
