Answers for "js add data in object"

2

js add data in object

var element = {}, cart = [];
element.id = id;
element.quantity = quantity;
cart.push(element);
Posted by: Guest on November-24-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language