摘要: A: Person {firstName: "Lydia", lastName: "Hallie"} and undefined B: Person {firstName: "Lydia", lastName: "Hallie"} and Person {firstName: "Sarah", la 阅读全文
posted @ 2019-06-26 11:46 最爱小虾 阅读(161) 评论(0) 推荐(0) 编辑
摘要: A: TypeError B: SyntaxError C: Lydia Hallie D: undefined undefined A: TypeError B: SyntaxError C: Lydia Hallie D: undefined undefined 您不能像使用常规对象那样向构造函 阅读全文
posted @ 2019-06-26 11:42 最爱小虾 阅读(919) 评论(0) 推荐(0) 编辑
摘要: A: Nothing, this is totally fine! B: SyntaxError. You cannot add properties to a function this way. C: undefined D: ReferenceError A: Nothing, this is 阅读全文
posted @ 2019-06-26 11:36 最爱小虾 阅读(506) 评论(0) 推荐(0) 编辑
摘要: A: {} B: ReferenceError: greetign is not defined C: undefined A: {} B: ReferenceError: greetign is not defined C: undefined 控制台会输出空对象,因为我们刚刚在全局对象上创建了一 阅读全文
posted @ 2019-06-26 11:29 最爱小虾 阅读(328) 评论(0) 推荐(0) 编辑
摘要: A: orange B: purple C: green D: TypeError A: orange B: purple C: green D: TypeError colorChange方法是静态的。 静态方法仅在创建它们的构造函数中存在,并且不能传递给任何子级。 由于freddie是一个子级对 阅读全文
posted @ 2019-06-26 11:22 最爱小虾 阅读(365) 评论(0) 推荐(0) 编辑
摘要: new Number()是一个内置的函数构造函数。 虽然它看起来像一个数字,但它并不是一个真正的数字:它有一堆额外的功能,是一个对象。 当我们使用==运算符时,它只检查它是否具有相同的值。 他们都有3的值,所以它返回true。 译者注:==会引发隐式类型转换,右侧的对象类型会自动拆箱为Number类 阅读全文
posted @ 2019-06-26 09:55 最爱小虾 阅读(315) 评论(0) 推荐(0) 编辑
摘要: A: mouse.bird.size B: mouse[bird.size] C: mouse[bird["size"]] D: All of them are valid A: mouse.bird.size B: mouse[bird.size] C: mouse[bird["size"]] D 阅读全文
posted @ 2019-06-26 09:51 最爱小虾 阅读(407) 评论(0) 推荐(0) 编辑