I have an array which has set of image names. I could print all the images by using console.log
but unfortunately when I tried <img/>
it didn't view images.
for (let index = 0; index < array.length; index++) {
const element = array[index];
console.log(element)
}
output of console.log(element)
DSC_0000038.jpg
DSC_0000040.jpg
DSC_0000039.jpg
DSC_0000047.jpg
DSC_0000045.jpg
DSC_0000049.jpg
DSC_0000042.jpg
DSC_0000041.jpg
how to solve my problem?