I have an array in javascript. It specifies URLs for images 1-1050. My images must be named 0001.jpg, 0002.jpg ect... However my script is calling up 1.jpg, 2.jpg... I am very new to JS and am struggling to incorporate an answer from here with my script.
for (i = 0001; i < 1050; i++) {
images.push('/images/' + i + '.jpg');
}