I am trying to load images from an array and display them on a webpage upon the browser window loading. Here is my approach:
const players = [
{
photo: 'img/photo0.jpeg'
},
{
photo: 'img/photo1.jpeg'
},
{
photo: 'img/photo2.jpeg'
}]
// This function should achieve that.
function() {
for(i = 0; i < players.lengh; i++;){
}
}