async function fetchUserResources() { const [posts, photos, todos] = await Promise.allSettled([ fetch('https://jsonplaceholder.typicode.com/posts/1'), fetch('https://jsonplaceholder.typicode.com/photos/1'), fetch('https://jsonplaceholder.typicode.com/todos/1') ]); console.log(posts); // {status: "fulfilled", value: {"holds_the_posts_object"}} console.log(photos); // {status: "fulfilled", value: {"holds_the_photos_object"}} console.log(todos); // {status: "rejected", reason: The error} return {posts, photos, todos}; }