await doesn't work on promise.all 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);
});