Can anyone see a problem with this code on line 3 with the this.newFileName[i], without the “[i]”, like this: this.newFileName, it works perfect, with the array it doesn’t work. Can anyone see why? Thanks!
createFileName2(i) {
console.log("interim " + i);
this.newFileName[i] = "fish_tank_photo_" + i + ".jpg";
console.log("New File Name " + i + ": " + this.newFileName[i]);
return this.newFileName;