Okay. So i've been reading up, and I am going to be coming here with my random questions. Instead of making a new thread that can be answered in one post for every question i come across, I'm going to start posting them all in here.
Question #1 - Arrays
so you can make an array by using the following syntax
and so on.Code:var a = new Array(); a[0] = 1; a[1] = 2; a[2] = 3;
First of all, if you try to find the lenth of the array, what will it tell you? Since you didn't define the length when you created the array, does it even have a length?
What if you try assigning something to like the 400th element in the array without assigning something to the other 399 elements? Will it go ahead and let you do that?
Thanks.



Reply With Quote


Bookmarks