function outcome() { try { throw new Error('payment failed'); } catch { return 'recovered'; } finally { return 'cleanup'; } } console.log(outcome());