Practice · Essentials I
Drill this lesson at your own pace. Practice doesn't change your review schedule.
Keys
Open the AI side panel.
one chord, two keys
billing.ts — acme-billing
Explorer
▾src
·billing.ts
·invoice.ts
·notify.ts
·package.json
billing.tsinvoice.ts
1export async function renew(sub: Sub) {
2 const invoice = await draft(sub);
3 if (invoice.total === 0) return;
4 await charge(sub.customer, invoice);
5 await notify(sub.customer.email);
6}
or press Enter