So basically in the bellow code I want to access the image which is related to the index of the array. Now on the console.log(i), I get "1" as there are two elements in the array.

However, when I click the "array" I get "../[object%20PointerEvent]1.png". This causes an error as the file name is 1.png not the above.

Does anyone know how I can remove the [object%20PointerEvent] so I just have the "../1.png"?

Thank you

```js
for(let i = 0; i < array.length; i++) {
    console.log(i);
    array[i].addEventListener("click", function nextImage(i) {
        image.src = i +".png";
    });
}
```