- MO3d
export function orderTotal(items) { - LB2y
let sum = 0; for (const it of items) {- SR5mo
sum += it.price * it.qty; - LB2y
} - MO3d
const c = Math.round(sum * 100); return c / 100;- LB2y
}
export function orderTotal(items) { let sum = 0; for (const it of items) { sum += it.price * it.qty; } const c = Math.round(sum * 100); return c / 100;}