for (var i = 0; i < boldStuffs.length; i += 1) { var fruit = getRandomItem(fruitsArray); boldStuffs[i].innerHTML = fruit.name + '<img src="'+fruit.image+'">'; }