JS Adicionar dados no objeto
var element = {}, cart = [];
element.id = id;
element.quantity = quantity;
cart.push(element);
Wandering Walrus
var element = {}, cart = [];
element.id = id;
element.quantity = quantity;
cart.push(element);