Explorer Intern at Microsoft
.catch() receives our error value and logs it to the screen. Here’s what it looks like in the console:
A new Error is thrown. Execution stops immediately and the Promise resolves to a rejected state.