# futureValue()

{% tabs %}
{% tab title="💾 程式" %}
:floppy\_disk: replit：[awaiting multiple promises](https://replit.com/@pegasusroe/awaiting-multiple-promises-in-parallelseries#index.js)

```javascript
// ⭐ a value from future
function futureValue(value, seconds) {
    return new Promise(resolve => {
        setTimeout(resolve, seconds * 1000, value);
    });
};
```
{% endtab %}

{% tab title="⬇️ 應用" %}
* [promises](../../await/promises "mention")
{% endtab %}
{% endtabs %}
