async function checkout(cart) { console.log("here"); const total = calc(cart); console.log("here 2", total); const payment = await charge(total); console.log("HERE!!!", payment); console.log("why", JSON.stringify(cart)); return payment.ok ? "done" : console.log("??"); }