I want to access the 'photo' from the for loop
I also try for, for in or for of but it did not work.
getPhoto() {
for (let c = 0; c < this.gallery.length; c++) {
console.log(this.gallery[c].thumbnailUrl);
}
}`
ERROR TypeError: Cannot read property 'length' of undefined
Comments
Post a Comment