'a1.jpg', you would use
'park/a1.jpg'. You would also need to change all 4 strings that have
.jpg in them.
You could organize this a bit by breaking up the string into different parts:
let path = 'park/'
let name = 'a1'
let type = '.jpg'
and then combining the parts:
path + name + type. This way you can just change the value of
name to get the location of the next picture. You could even just do
'park/a' + imageNumber + '.jpg' if you put it in the right place and are careful about the value of
You might find it helpful to search MDN for other html information.