Here’s some strategy that might work for you: why don’t you store all the images in a folder, and have a multi-dimensional array containing both the name of the fruit and the url of the image of that fruit -
so the array would be [[‘fruit1Name’, ‘fruit1ImageUrl’], [‘fruit2Name’, ‘fruit2ImageUrl’], [‘fruit3Name’, ‘fruit3ImageUrl’], [‘fruit4Name’, 'fruit4ImageUrl] … etc
That would be one way, although I’d prefer to use objects as I think it makes the code more readable and makes it easier to add more properties at a later date.
and then when updating the page with the random fruits:
for (var i = 0; i < boldStuffs.length; i += 1) {
var fruit = getRandomItem(fruitsArray);
boldStuffs[i].innerHTML = fruit.name + '<img src="'+fruit.image+'">';
}