# finally()

{% hint style="info" %}
[es2018](../../../feature/es2018 "mention") feature
{% endhint %}

{% tabs %}
{% tab title="⭐️ 重點" %}
{% hint style="success" %}
[.finally()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/finally) will be invoked when the [..](.. "mention") you called it on <mark style="color:orange;">**settles**</mark>.
{% endhint %}
{% endtab %}

{% tab title="📘 手冊" %}
* [Promise.prototype.finally()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/finally)
{% endtab %}
{% endtabs %}
