My task involves handling an array of image objects:
var pics = ["pic1","pic2","pic3","pic4","pic5","pic6"]
I'm trying to loop through the array and adjust the style.left value by subtracting 10 from the current value. Here is what I attempted:
for (i = 0; i < 6; i++) {
pics[i].style.left=pics[i].style.left-10
}
However, my current approach doesn't seem to be effective. Can anyone provide guidance on how I can achieve this?