length` — 返回数组的长度

var s1 = ["a","b"]
console.log(s1.length);
//结果:2

valueOf() — 返回数组的原始值

var s1 = ["a","b"]
console.log(s1.valueOf());
//结果:["a", "b"]

concat() — 连接两个或多个数组并返回结果

var s1 = ["111","a"]
var s2 = ["222","b"]
var s3 = ["333","c"];
var s4 = new Array("s4");
console.log(s4.concat(s1,s2,s3));
//结果为:["s4", "111", "a", "222", "b", "333", "c"]

join() — 将数组全部元素放进一个字符串,并用逗号隔开

var s4 = new Array("111","222");
console.log(s4.join());
//结果为:111,222

pop() — 删除并返回数组最后一个元素

var s4 = new Array("111","222");
console.log(s4.pop());
//结果:222

push() — 向数组尾末添加元素,并返回新的长度

var s4 = new Array("111","222");
console.log("s4 的长度:"+s4.push("333"));
console.log(s4)
//结果:s4 的长度:3 
//["111", "222", "333"]

unshift() — 向数组开头位置添加元素,并返回新的长度

var s4 = new Array("111","222","333","444");
s4.unshift("000");
console.log(s4);
//结果:["000", "111", "222", "333", "444"]

reverse() — 颠倒数组中元素的顺序

var s4 = new Array("111","222");
console.log(s4.reverse())
//结果:["222", "111"]

shift() — 删除并返回数组第一个元素

var s4 = new Array("111","222");
console.log(s4.shift())
//结果: 111

slice() — 从数组返回指定下标的元素

var s4 = new Array("111","222");
console.log(s4.slice(1))
//结果:["222"]

sort() — 将数组元素进行排序

var s4 = new Array("222","111","333");
console.log(s4.sort())
//结果:["111", "222", "333"]

splice() — 保留指定下标元素,删除其它元素,并返回删除的元素

var s4 = new Array("111","222","333","444","555","666");
var s5 = s4.splice(0,5);
console.log(s5);
console.log("删除的元素:"+s4.splice(0,5))
//结果:["111", "222", "333", "444", "555"]
//删除的元素:666

toString() — 将数组元素以字符串的形式返回

var s4 = new Array("111","222","333","444","555","666");
console.log(s4.toString());
//结果:111,222,333,444,555,666

toLocaleString() — 将数组元素以字符串的形式返回(当数字超过4位时用逗号隔开)

var s4 = [12345]
console.log(s4.toLocaleString());
//结果:12,345