Skip to content

Lesson 14: 'fileIndex' is nowhere declared in uploadToPinata.js #2186

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

You must be logged in to vote

@ManuWeb3 : We are using fileIndex as an index in files. So, that's why we are saying it like fileIndex in files,

We are using in, Because we want it to loop to all the files, Its the JS for - in Loops It Loops the properties of an object

And because of this outside for loop in does not work.

Replies: 1 comment 2 replies

Comment options

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

@RoboCrypter
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
2 participants