Skip to content

Lesson 14: const { responses: imageUploadResponses, files } - doubt #2220

Answered by krakxn
ManuWeb3 asked this question in Q&A
Discussion options

You must be logged in to vote

It is actually really simple:

const { responses: imageUploadResponses, files } = await storeImages(imagesLocation)

From storeImages(imagesLocation) we are extracting responses.

Then, we are renaming that responses to imageUploadResponses via responses: imageUploadResponses.

Why? For convenience and aptness in the specific context which makes it much easier to comprehend.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@alymurtazamemon
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ManuWeb3
Comment options

@krakxn
Comment options

Answer selected by ManuWeb3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants