3 ms·
Example: (()=>{try {return 42} finally {console.log('you will see this')}})() The fn body returns 3, but also the "finally" executes first and you get the con
by l1ambda 9y ago
Example:
(()=>{try {return 42} finally {console.log('you will see this')}})()
The fn body returns 3, but also the "finally" executes first and you get the console.log. Same with:
(()=>{try {throw 42} finally {console.log('you will see this')}})()