Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
function Basket(customer, items){
this.add = function(item) {
this.checkout = function(){
const payments = new PayPalPayments();
return, customer.creditCard)
} = function() {
return items.reduce((sum, item) => sum + (item.price * item.quantity), 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.