💾futureValue()

💾 replit:awaiting multiple promises

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

Last updated