Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

adding javascript object within array in the last position

let car = {
 "color": "red",
 "type": "cabrio",
 "registration": new Date('2016-05-02'),
 "capacity": 2
}
cars.push(car);
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #adding #javascript #object #array #position
ADD COMMENT
Topic
Name
1+3 =