In real code, you would call makePromise().then()
or await makePromise()
. I assigned the promise to an intermediate variable to illustrate the difference. Which style do you prefer?
const cl = console.log
function thenCatch () {
cl('start')
const promise = makePromise()