Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
It should print 3 since finally is always executed (except for a system.exit invocation) even if there is a return somewhere in the try catch block
I could be wrong though :D
Related Rants
function x () {
for (var i = 0; i < 5; i++) {
try {
return i;
} finally {
if (i != 3) continue;
}
}
}
console.log( x() ); // ?
undefined
js