const fetchRequest1 = fetch('https://api.example.com/data1');
const fetchRequest2 = fetch('https://api.example.com/data2');
Promise.all([fetchRequest1, fetchRequest2])
.then(responses => {
const [response1, response2] = responses;
// Process the responses
})
.catch(error => {
// Handle any errors
});