Show navigation Promise.prototype.finally enables registering a callback to be invoked when a promise is settled (i.e. either fulfilled or rejected). Imagine you want to fetch some data to show on the page. Oh, and you want to show a loading spinner when the request starts, and hide it when the request completes. When something goes wrong, you show an error message instead. const fetchAndDisplay =