0

I want create array of file-type like below in JavaScript.

e.g File[] filesl = new File[1];

or List<File> fileList = new ArrayList<>();

But it doesn't help me.

I need to have array of files.

1
  • An array in Javascript is not typed, so you can just create an array, and put files on it Commented Mar 30, 2018 at 6:34

1 Answer 1

1

You might be thinking of java. Javascript (which is a different language) currently does not have typed variables. To create an array in javascript, you would do

var files = [];

You can put anything you want into this array, including file data.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.