原版71页
If both values are null or both values are undefined, they are equal.
译版75页
如果两个值都是null或者都是undefined,则它们不相等。
====================================================
原版84页
var a = [1,2,3]; // Start with an array
delete a[2]; // Delete the last element of the array
a.length // => 2: array only has two elements now
译版88页
var a = [1,2,3]; // 定义一个数组
delete a[2]; // 删除最后一个数组元素
2 in a;//=>false:元素2在数组中已经不存在了
a.length // => 3:注意,数组长度并没有改变,尽管上一行代码删除了这个元素,但删除操作留下了一个“洞”,实际上并没有修改数组的长度,因此a数组的长度仍然是3
慕桂英3389331
相关分类