I have some questions about Javascript.
What is the array that has the properties? I think I read that the creation is different between var array = [];
that var array = new
Array();
When you create an array of the form var array = new Array();
is it necessary to put some number in the parameters?
I remember learning to create an array with undefined elements, but I do not remember the commas very well, it was like var array =
[,,,,,,];
I think here there would be 5 elements undefined
When we are in the same function and at the beginning of the function they place var algo;
, then through the middle of the function they define it as
algo = 2;
and then at the end as algo = 4;
, at the end what happens with
The variable? the 2 will be replaced by the 4? , are they concatenated? what
happens? , because if I do this with an array ( array[array.length] =
"Elemento6";
), in this case an element is added, but with the
variables how are you going?