Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to declare objects inside arrays in javascript

let cats = {
	name: 'bob',
  	children: [let child1 = {
               	console.log('this is how to create objects inside an array'];
               }]
};
 
PREVIOUS NEXT
Tagged: #declare #objects #arrays #javascript
ADD COMMENT
Topic
Name
5+5 =