zweizhao.github.io

项目,文章,随笔,博客,Markdown,个人网站,人生感悟。

View on GitHub
arr = [1,2,3,4,5,6,7,8,9,0]
arr.length = 3

console.log arr # [1,2,3]
console.log arr[3] # .undefined