随笔分类 -  面试题

摘要: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 最爱小虾 阅读(166) 评论(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 最爱小虾 阅读(926) 评论(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 最爱小虾 阅读(508) 评论(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 最爱小虾 阅读(336) 评论(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 最爱小虾 阅读(369) 评论(0) 推荐(0) 编辑
摘要:new Number()是一个内置的函数构造函数。 虽然它看起来像一个数字,但它并不是一个真正的数字:它有一堆额外的功能,是一个对象。 当我们使用==运算符时,它只检查它是否具有相同的值。 他们都有3的值,所以它返回true。 译者注:==会引发隐式类型转换,右侧的对象类型会自动拆箱为Number类 阅读全文
posted @ 2019-06-26 09:55 最爱小虾 阅读(318) 评论(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 最爱小虾 阅读(412) 评论(0) 推荐(0) 编辑
摘要:A: Lydia 和 undefined B: Lydia 和 ReferenceError C: ReferenceError 和 21 D: undefined 和 ReferenceError A: Lydia 和 undefined B: Lydia 和 ReferenceError C:  阅读全文
posted @ 2019-06-25 11:55 最爱小虾 阅读(137) 评论(0) 推荐(0) 编辑
摘要:A: 20 and 62.83185307179586 B: 20 and NaN C: 20 and 63 D: NaN and 63 A: 20 and 62.83185307179586 B: 20 and NaN C: 20 and 63 D: NaN and 63 答案: B 请注意,di 阅读全文
posted @ 2019-06-25 11:33 最爱小虾 阅读(426) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示