Promise/then for array of functions – Javascript
I have an array of functions such as: let funcs = [] funcs.push(() => {window.x = fetch()}) funcs.push(() => {console.log(window.x)}) funcs.push(() => {console.log("Hello, world!")}) I would like the functions to be evoked one after the other, as in: for (let…