---
description: 🚧 施工中
---

# setTimeout()

[JS](../../js) ⟩ [browser](..) ⟩ [web API]() ⟩ setTimeout

{% hint style="success" %}
<mark style="color:yellow;">**sets a timer**</mark> which executes code once the timer expires, cancel the timer with [cleartimeout](cleartimeout "mention").
{% endhint %}

{% tabs %}
{% tab title="✨ 範例" %}
* [debounce-f-s](../../js/val/func/kind/higher/decorator/debounce-f-s "mention") - suspends function calls until a specific period of time.
{% endtab %}

{% tab title="📘 手冊" %}
* [clearTimeout()](https://developer.mozilla.org/en-US/docs/Web/API/clearTimeout)
* [setTimeout()](https://developer.mozilla.org/en-US/docs/Web/API/setTimeout)
{% endtab %}
{% endtabs %}
