promise.all vs await code example
Example: await all pronmises
Promise.all([promise1, promise2, promise3]).then(function(values) {
console.log(values);
});
Promise.all([promise1, promise2, promise3]).then(function(values) {
console.log(values);
});