Another update from ingydotnet^djgoku
This commit is contained in:
parent
91df62d461
commit
948b86eafa
7604 changed files with 108452 additions and 22726 deletions
|
|
@ -11,9 +11,12 @@ var myArray2 = new Array("Item1","Item2");
|
|||
var myArray3 = ["Item1", "Item2"];
|
||||
|
||||
// Assign a value to member [2] (length is now 3)
|
||||
myArray[2] = 5;
|
||||
myArray3[2] = 5;
|
||||
|
||||
var x = myArray[2] + myArray.length; // 8
|
||||
|
||||
// You can also add a member to an array with the push function (length is now 4)
|
||||
myArray3.push('Test');
|
||||
|
||||
// Elisions are supported, but are buggy in some implementations
|
||||
var y = [0,1,,]; // length 3, or 4 in buggy implementations
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue