Difficulty: 5/10error propagation, catch chaining, async/await interopWe can use the .catch() method at the end of the Promise chain to catch and handle any errors that occur in the chain.Scenario Questions0-2 years experience1You need to fetch a user profile then their posts using fetch, which returns promises. How would you write the chain so that if the first request fails, the second request never runs and the caller receives an error?2What happens if you put a .catch after the first .then but before the second .then in a promise chain?3Write a short snippet that reads a file with fs.promises.readFile, parses the JSON, and returns a rejected promise with a clear message if either step fails.Follow-up QuestionsWhat would happen if you placed a .catch in the middle of the chain?How does error handling differ when you use async/await instead of .then/.catch?Can you think of a scenario where an error might still slip through your chain?Suggest Improvement