.finally(function() { // settled (fulfilled or rejected) }); .finally(()=> { // settled (fulfilled or rejected) });
Finally is used to place important code, it will be executed whether an exception is handled or not. Finally is a block