Defining Objects
Jump to navigation
Jump to search
var comptype = { brand: 'ibm', ram: '128 Gigs', hdrive: '1 Terabyte' }
Loop through items
for(var item in comptype){ console.log(item + " - " + comptype[item]);