fetch: Promises

When using .then() to handle a promise, the current JavaScript thread immediately resumes below the .then() and .catch() chain, and in this case, finishes soon. Now other JavaScript code might be run. Later, the function in .then() will be called.