(async arr => console.log(await arr.reduce(async (a, b) => (await a) + (await new Promise(r => setTimeout(r, 100, b * 2))), 0)))([1,2,3,4,5]);
const randomColor = "#" + Math.floor(Math.random()*16777215).toString(16); console.log(randomColor);