1、数组示例
var trees = new Array("One", "Two", "Three", "Four", "Five")
for (var i=0; i<trees.length; i++)
console.log(trees[i])
console.log('================')
delete trees[3];
for (var i=0; i<trees.length; i++)
console.log(trees[i])
One
Two
Three
Four
Five
================
One
Two
Three
undefined
Five
2、类型判断
console.log('a' instanceof String, typeof 'a')
// false string
console.log(a = new String('a'), a instanceof String, typeof(a))
// String ('a') true object
console.log([] instanceof Object)
// true