',null,true];
new Array(1,2,3,'hello');
console.msg(arr[0]);
// 越界是未定义
对象
// 对象大括号,数组中括号
// 每个属性用,隔开...for(let i in age)
{
}
for(let x of age) // x为具体的值(未定义的值?)...let 就避免的这个问题.
常量 const
约定俗成, 在ES6之前, 全部用大写, 建议不改....}
// 方法, kkk.age();
// 拆开写fun:
this是调用它的类, 所以, 在外面 .fun() 可以, get_ff() NaN, window没有这个
this是无法指向的,...__proto__ 原型指向, 有的属性名就覆盖属性值(?), 没有的, 加入
zzz.__proto__ = Student;
Class继承
ES6引入的.