method_chain.js asyncfileread("a.txt")
.then((fda) => {
return asyncfileread("b.txt").then((b) => [fda, b]);
})
.then(([fda, fdb]) => {
return asyncfileread("c.txt").then((b) => [fda, fdb, b]);
})
.then(([fda, fdb, fdc]) => {
return asyncfileread("d.txt").then((b) => [fda, fdb, fdc, b]);
})
.then(([fda, fdb, fdc, fdd]) => {
return asyncfileread("e.txt").then((b) => [fda, fdb, fdc, fdd, b]);
})
.then(([fda, fdb, fdc, fdd, fde]) => {
return asyncfileread("f.txt").then((b) => [fda, fdb, fdc, fdd, fde, b]);
})
.then(([fda, fdb, fdc, fdd, fde, fdf]) => {
console.log(fda,fdb,fdc,fdd,fde,fdf)
});