When a promise rejects, the control jumps to the closest rejection handler.… If we throw inside .catch, then the control goes to the next closest error handler.… And if we handle the error and finish normally, then it continues to the next closest successful .then… In case of an error, the promise becomes rejected, and the execution should jump to the closest
In other words, the method closest goes up from the element and checks each of parents.
Upon right click, the closest context menu should show up.
Error handling.If we don’t catch an error, then it falls through, till the closest outer try..catch.