Now I'm trying to add photos in my app.
For example, if there is one picture, the key is img_no_1, and the value is getting through the backend.
if can put up to 10 pictures, how can make img_no + number(The number of images.) according to the number of pictures?
I want to make a Array like imageList.
If there are five pictures,
const image_no = [145, 331, 392, 2, 39];
const imageList = [];
--------------------------------------------------------
imageList = [{
img_no_1: 145,
img_no_2: 331,
img_no_3: 392,
img_no_4: 2,
img_no_5: 39
}];
Thanks for your attention.
mapand thenObject.fromEntries.