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?
Asked
Active
Viewed 61 times
-1
-
how do you remember the name later? why not take an array or object? – Nina Scholz Mar 16 '20 at 09:24
-
Objects or array might help you. – Not A Bot Mar 16 '20 at 09:25
-
you need to assign atleast one static collection veriable – Negi Rox Mar 16 '20 at 09:27
1 Answers
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