Sample code to execute promises in sequence

Indeed, and I’ve read quite a few of them. They seemed to fall into two camps, 1) use reduce with promiseChain, and 2) code the sequence directly as in my second example where each result is fed to the next .then. I should think at least one would work, but neither does. So either the problem is between chair and keyboard (certainly possible, I’m relatively new to javascript but have decades of experience with many other languages), or the problem is in the framework somehow (running on the client not node.js, or something else). I can address both problems by asking whether anybody has a sample that works on wix.