var myArray = [1,2,3]; myArray.length = 2; // Deletes the last element. myArray.length = 10; // Adds 8 elements to the array with undefined values.
No comments have been posted
Comments
No comments have been posted