
Often you need to make API calls in sequence where each depends on the previous result. Let's fetch user data, then their posts.
fetchUser(id) and fetchPosts(userId) are providedasync function getUserWithPosts(id){ user, posts }Submit your code to see test results