Write showVideosWithLikes() using the async functions getVideos() and getLikes().
Unlock detailed company stats for this questionUpgrade
Given two async functions getVideos() and getLikes(), write showVideosWithLikes() which calls both and handles errors. If getVideos fails, show an error. If getLikes fails, still show the videos. Discuss potential use of Promise.all or Promise.allSettled.
Community answers
No answers contributed by the community yet.
Related courses

Course

