const video1 = new Promise((resolve, reject) => {
resolve("video1 loaded");
});
const video2 = new Promise((resolve, reject) => {
resolve("Video2 loaded");
});
const video3 = new Promise((resolve, reject) => {
resolve("video3 loaded");
});
Promise.all([video1, video2, video3]).then((messages) => {
console.log("messages", messages);
});