Im having trouble showing image array it is showing undefined
here is my code:
data.rows.forEach(function (row) {
var attachments = JSON.parse(row.attachment);
$("#records_row").append(
"<tr>\
<td>" +row.id +"</td>\
<td>" + row.subject +"</td>\
<td id='imagecol'>"+
attachments.forEach(item => {
"<img src='"+item+"' class='img-thumbnail'>" //This part is showing undefined
})
+"</td>\
</tr>"
);
});
my array
(2) ['/images/footer-bg.jpg', '/images/hero-bg.jpg']