Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

nested objects javascript

var backPack = {
  color: 'black',
  straps: 4,
  isHeavy: true,
  wallet: {
	cash: '$10,000',
	creditCards: 6
  }
  tablet: {
	brand: 'Apple iPad',
  	buttons: 1
  }
};
 
PREVIOUS NEXT
Tagged: #nested #objects #javascript
ADD COMMENT
Topic
Name
8+3 =