Within my 'const', I have an array filled with objects. Each object contains a key called 'image' which holds the value for 'url' as illustrated below.
const images =[
{
"image": {
"url": "imageUrlHere"
}
},
{
"image": {
"url": "imageUrlHere"
}
},
{
"image": {
"url": "imageUrlHere"
}
}
]
To access each individual value, I can use specific array indices like this:
const imageUrls = images[0].image.url;
However, my goal now is to consolidate all these image.url values into a new array so that I can display all the images on my webpage.
Thank you!