-1

I wan to make a password storing program, and each password is stored into an independant variable, but I'd have to make an infinite number of variables and assign each input value to its corresponding variable. So is there a way to make Javascript declare the variables by itself and assign it to its corresponding input value?

1 Answers1

0

you can use array which can be collection of multiple values.

There will not be any specific limit of array in terms of length.

If you don't know about array, please have a look here Or you can try array online here.

Hope this helps, please let me know if you are still not clear.

Chintan Joshi
  • 1,207
  • 1
  • 9
  • 17