Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js add data in object

var element = {}, cart = [];
element.id = id;
element.quantity = quantity;
cart.push(element);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #add #data #object
ADD COMMENT
Topic
Name
1+8 =