How do I Access an Objects properties inside an Array

I have these assets:

const ITEMS = [
  {
    title: 'Walnut Speakers & Amp',
    price: 599,
    image:
      'https://imagepath,
  },
  {
    title: 'Maple Lamp',
    price: 109,
    image:
      'https://imgpath,
  },

I want to access each individual object properties like title, price, and image so I can use it to inject it into my website as HTML in a loop.

@camperextraordinaire Thanks for the input and motivation, I was able to find out how easy it was to access it using ITEMS[i].title for e.g.
I was able to loop through it and inject it into my DOM as a standard list… now just gotta find out how to put each of them into a container and objects inside of each other… sounds like it is going to be tough, here I go…

1 Like